Prettified Code!

This commit is contained in:
daniep01
2022-07-16 11:53:27 +00:00
committed by GitHub Action
parent d2f7dea478
commit aeeddfc283

View File

@@ -36,8 +36,7 @@ instance.prototype.init = function () {
self.getWorkspace() self.getWorkspace()
self.getCurrentTimer().then((result) => { self.getCurrentTimer().then((result) => {
self.log('debug', 'Current timer id ' + result) self.log('debug', 'Current timer id ' + result)
} })
)
self.actions() self.actions()
} }
@@ -223,15 +222,13 @@ instance.prototype.action = function (action) {
} else { } else {
self.log('warn', 'No running timer to stop or running timer id unknown') self.log('warn', 'No running timer to stop or running timer id unknown')
} }
} })
)
break break
} }
case 'getCurrentTimer': { case 'getCurrentTimer': {
self.getCurrentTimer().then((result) => { self.getCurrentTimer().then((result) => {
self.log('debug', 'Current timer id ' + result) self.log('debug', 'Current timer id ' + result)
} })
)
break break
} }
case 'refreshProjects': { case 'refreshProjects': {
@@ -354,8 +351,7 @@ instance.prototype.getCurrentTimer = function () {
self.log('debug', 'Error getting current timer') self.log('debug', 'Error getting current timer')
} }
) )
} })
)
} }
instance.prototype.sendCommand = function (mode, command, body = '') { instance.prototype.sendCommand = function (mode, command, body = '') {