refactor: applies linting.
This commit is contained in:
parent
54ca0ce34f
commit
115ddc6a4a
20 changed files with 111 additions and 111 deletions
|
@ -155,15 +155,15 @@ func sendReport(body string) {
|
|||
}
|
||||
}
|
||||
|
||||
func openBrowser(URL string) error {
|
||||
func openBrowser(u string) error {
|
||||
var err error
|
||||
switch runtime.GOOS {
|
||||
case "linux":
|
||||
err = exec.Command("xdg-open", URL).Start()
|
||||
err = exec.Command("xdg-open", u).Start()
|
||||
case "windows":
|
||||
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", URL).Start()
|
||||
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", u).Start()
|
||||
case "darwin":
|
||||
err = exec.Command("open", URL).Start()
|
||||
err = exec.Command("open", u).Start()
|
||||
default:
|
||||
err = fmt.Errorf("unsupported platform")
|
||||
}
|
||||
|
|
|
@ -293,7 +293,7 @@ func runCmd(staticConfiguration *static.Configuration, configFile string) error
|
|||
log.WithoutContext().Errorf("Could not enable Watchdog: %v", err)
|
||||
} else if t != 0 {
|
||||
// Send a ping each half time given
|
||||
t = t / 2
|
||||
t /= 2
|
||||
log.WithoutContext().Infof("Watchdog activated with timer duration %s", t)
|
||||
safe.Go(func() {
|
||||
tick := time.Tick(t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue