No more braces-style eslint errors
Running eslint is effectively useless nowdays because of the overwhelming number of warnings returned. This patch fixes the existing "braces-style" errors. I've decided to only fix those errors here to keep the patch small, and not destroy any chance of success by needing to rebase every 5 minutes. Other fixes will be incoming. Change-Id: I0cc2772287ce3f4b3ddb808764dd8d9b1c569d02 Partial-Bug: #1554824
This commit is contained in:
parent
a8b6281215
commit
c3fd32b8eb
|
@ -27,12 +27,14 @@
|
|||
$timeout = _$timeout_;
|
||||
|
||||
var service = {
|
||||
getResourceType: function() { return {
|
||||
load: function() { return deferred.promise; },
|
||||
parsePath: function() { return 'my-context'; },
|
||||
itemName: function() { return 'A name'; },
|
||||
initActions: angular.noop
|
||||
}; },
|
||||
getResourceType: function() {
|
||||
return {
|
||||
load: function() { return deferred.promise; },
|
||||
parsePath: function() { return 'my-context'; },
|
||||
itemName: function() { return 'A name'; },
|
||||
initActions: angular.noop
|
||||
};
|
||||
},
|
||||
getDefaultDetailsTemplateUrl: angular.noop
|
||||
};
|
||||
|
||||
|
|
|
@ -38,8 +38,7 @@
|
|||
$window,
|
||||
service,
|
||||
magicSearchEvents
|
||||
)
|
||||
{
|
||||
) {
|
||||
var ctrl = this;
|
||||
var searchInput = $element.find('.search-input');
|
||||
ctrl.mainPromptString = $scope.strings.prompt;
|
||||
|
|
|
@ -41,9 +41,15 @@
|
|||
'$modal'
|
||||
];
|
||||
|
||||
function ContainersController(swiftAPI, containersModel, basePath, baseRoute, containerRoute,
|
||||
simpleModalService, toastService, $location, $modal)
|
||||
{
|
||||
function ContainersController(swiftAPI,
|
||||
containersModel,
|
||||
basePath,
|
||||
baseRoute,
|
||||
containerRoute,
|
||||
simpleModalService,
|
||||
toastService,
|
||||
$location,
|
||||
$modal) {
|
||||
var ctrl = this;
|
||||
ctrl.model = containersModel;
|
||||
ctrl.model.initialize();
|
||||
|
|
|
@ -39,9 +39,13 @@
|
|||
'$scope'
|
||||
];
|
||||
|
||||
function ObjectsController(containersModel, containerRoute, batchActions,
|
||||
rowActions, $q, $routeParams, $scope)
|
||||
{
|
||||
function ObjectsController(containersModel,
|
||||
containerRoute,
|
||||
batchActions,
|
||||
rowActions,
|
||||
$q,
|
||||
$routeParams,
|
||||
$scope) {
|
||||
var ctrl = this;
|
||||
|
||||
ctrl.rowActions = rowActions;
|
||||
|
|
Loading…
Reference in New Issue