Format code using clang-format-5.0
Once merged, this repository will have CI enforce
the coding guidelines in the .clang-format file.
Change-Id: I96a05972665f9c67625c6850c3da25edc540be06
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/app/common/directives/firmware-list.js b/app/common/directives/firmware-list.js
index 163df82..a08ef8d 100644
--- a/app/common/directives/firmware-list.js
+++ b/app/common/directives/firmware-list.js
@@ -1,32 +1,32 @@
window.angular && (function(angular) {
'use strict';
- angular
- .module('app.common.directives')
- .directive('firmwareList', ['APIUtils', function(APIUtils) {
+ angular.module('app.common.directives').directive('firmwareList', [
+ 'APIUtils',
+ function(APIUtils) {
return {
'restrict': 'E',
'template': require('./firmware-list.html'),
- 'scope': {
- 'title': '@',
- 'firmwares': '=',
- 'filterBy': '=',
- 'version': '='
- },
- 'controller': ['$rootScope', '$scope', 'dataService', '$location', '$timeout', function($rootScope, $scope, dataService, $location, $timeout) {
- $scope.dataService = dataService;
- $scope.activate = function(imageId, imageVersion, imageType) {
- $scope.$parent.activateImage(imageId, imageVersion, imageType);
- };
+ 'scope':
+ {'title': '@', 'firmwares': '=', 'filterBy': '=', 'version': '='},
+ 'controller': [
+ '$rootScope', '$scope', 'dataService', '$location', '$timeout',
+ function($rootScope, $scope, dataService, $location, $timeout) {
+ $scope.dataService = dataService;
+ $scope.activate = function(imageId, imageVersion, imageType) {
+ $scope.$parent.activateImage(imageId, imageVersion, imageType);
+ };
- $scope.delete = function(imageId, imageVersion) {
- $scope.$parent.deleteImage(imageId, imageVersion);
- };
+ $scope.delete = function(imageId, imageVersion) {
+ $scope.$parent.deleteImage(imageId, imageVersion);
+ };
- $scope.changePriority = function(imageId, imageVersion, from, to) {
- $scope.$parent.changePriority(imageId, imageVersion, from, to);
- };
- }]
+ $scope.changePriority = function(imageId, imageVersion, from, to) {
+ $scope.$parent.changePriority(imageId, imageVersion, from, to);
+ };
+ }
+ ]
};
- }]);
+ }
+ ]);
})(window.angular);