Run js-beautify and fixjsstyle on code
Found this pointer on stackoverflow:
https://stackoverflow.com/a/31660434/5508494
End goal is to get the code formatted well enough that
clang format will run correctly against it.
Change-Id: I80053e78d253d8eee49233e42d55e5807ae8fdc8
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/app/common/directives/errors.js b/app/common/directives/errors.js
index 2c9b109..8123694 100644
--- a/app/common/directives/errors.js
+++ b/app/common/directives/errors.js
@@ -1,18 +1,18 @@
-window.angular && (function (angular) {
- 'use strict';
+window.angular && (function(angular) {
+ 'use strict';
- angular
- .module('app.common.directives')
- .directive('errors', ['APIUtils', function (APIUtils) {
- return {
- 'restrict': 'E',
- 'template': require('./errors.html'),
- 'scope': {
- 'path': '='
- },
- 'controller': ['$scope','dataService', function($scope, dataService){
- $scope.dataService = dataService;
- }]
- };
- }]);
+ angular
+ .module('app.common.directives')
+ .directive('errors', ['APIUtils', function(APIUtils) {
+ return {
+ 'restrict': 'E',
+ 'template': require('./errors.html'),
+ 'scope': {
+ 'path': '='
+ },
+ 'controller': ['$scope', 'dataService', function($scope, dataService) {
+ $scope.dataService = dataService;
+ }]
+ };
+ }]);
})(window.angular);