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:
parent
a6aed5416f
commit
8b13a1c945
25 changed files with 188 additions and 130 deletions
|
@ -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('/')
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue