Skip to content

Commit 29901ec

Browse files
committed
Cleanup - fix Jshint errors
1 parent d042157 commit 29901ec

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

quick-start/src/main/resources/static/app/directives/headerDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
};
5151

5252
scope.showApiDoc = function() {
53-
DataHub.showApiDoc();
53+
DataHub.showApiDoc();
5454
};
5555

5656
}

quick-start/src/main/resources/static/app/quickStartApp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@
102102
//do nothing
103103
})
104104
.when('/api-doc', {
105-
templateUrl: 'doc/apiDoc.html',
106-
controller: 'apiDocController'
105+
templateUrl: 'doc/apiDoc.html',
106+
controller: 'apiDocController'
107107
})
108108
.otherwise({
109109
redirectTo: '/login'

quick-start/src/main/resources/static/app/services/dataHubService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
}
197197

198198
function showApiDoc() {
199-
$window.open('#/api-doc', '_blank');
199+
$window.open('#/api-doc', '_blank');
200200
}
201201

202202
}

quick-start/src/main/resources/static/doc/apiDocController.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
$scope.loading = false;
1313
$scope.url = $scope.swaggerUrl = 'v2/api-docs';
14-
$scope.myErrorHandler = function (data, status) {
15-
alert('Failed to load swagger: ' + status + ' ' + data);
16-
};
14+
$scope.myErrorHandler =
15+
function (data, status) {
16+
window.alert('Failed to load swagger: ' + status + ' ' + data);
17+
};
1718
$scope.infos = false;
1819
}
1920

0 commit comments

Comments
 (0)