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/server-control/controllers/bmc-reboot-controller.js b/app/server-control/controllers/bmc-reboot-controller.js
index 8be09eb..06097b8 100644
--- a/app/server-control/controllers/bmc-reboot-controller.js
+++ b/app/server-control/controllers/bmc-reboot-controller.js
@@ -9,30 +9,26 @@
window.angular && (function(angular) {
'use strict';
- angular
- .module('app.serverControl')
- .controller('bmcRebootController', [
- '$scope',
- '$window',
- 'APIUtils',
- 'dataService',
- function($scope, $window, APIUtils, dataService) {
- $scope.dataService = dataService;
- $scope.confirm = false;
- $scope.rebootConfirm = function() {
- if ($scope.confirm) {
- return;
- }
- $scope.confirm = true;
- };
- $scope.reboot = function() {
- dataService.setUnreachableState();
- APIUtils.bmcReboot(function(response) {
- //@NOTE: using common event to reload server status, may be a better event listener name?
- $scope.$emit('user-logged-in', {});
- });
- };
- }
- ]);
+ angular.module('app.serverControl').controller('bmcRebootController', [
+ '$scope', '$window', 'APIUtils', 'dataService',
+ function($scope, $window, APIUtils, dataService) {
+ $scope.dataService = dataService;
+ $scope.confirm = false;
+ $scope.rebootConfirm = function() {
+ if ($scope.confirm) {
+ return;
+ }
+ $scope.confirm = true;
+ };
+ $scope.reboot = function() {
+ dataService.setUnreachableState();
+ APIUtils.bmcReboot(function(response) {
+ //@NOTE: using common event to reload server status, may be a better
+ // event listener name?
+ $scope.$emit('user-logged-in', {});
+ });
+ };
+ }
+ ]);
})(angular);