1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

Fix various JSHint warnings in client-side code.

This commit is contained in:
Simo Kinnunen 2014-03-26 16:06:13 +09:00
parent a6aed5416f
commit 8b13a1c945
25 changed files with 188 additions and 130 deletions

View file

@ -1,4 +1,11 @@
module.exports = function DeviceControlCtrl($scope, $routeParams, $location, DeviceService, GroupService, ControlService) {
module.exports = function DeviceControlCtrl(
$scope
, $routeParams
, $location
, DeviceService
, GroupService
, ControlService
) {
$scope.control = null
$scope.device = null
$scope.control = null
@ -12,7 +19,7 @@ module.exports = function DeviceControlCtrl($scope, $routeParams, $location, Dev
$scope.control = ControlService.forOne(device, device.channel)
return device
})
.catch(function(err) {
.catch(function() {
$location.path('/')
})
}