Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
vHanda committed May 15, 2022
1 parent 9ef8e04 commit 4ea0126
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions daemon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
"github.com/kardianos/service"
)

var logger service.Logger

type Daemon struct{}

func (d *Daemon) Start(s service.Service) error {
Expand Down Expand Up @@ -49,14 +47,14 @@ func main() {
}

s := autoSyncService.Service
logger, err = s.Logger(nil)
logger, err := s.Logger(nil)
if err != nil {
log.Fatal("BuildLogger", err)
}

err = s.Run()
if err != nil {
log.Fatal("RunService", err)
_ = logger.Error("RunService", err)
}
}

Expand Down

0 comments on commit 4ea0126

Please sign in to comment.