From 4ea0126a089ca73447675b570edc59a91c410365 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 15 May 2022 23:46:49 +0200 Subject: [PATCH] Fix linter --- daemon/main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/daemon/main.go b/daemon/main.go index 422490e..b3bebc0 100644 --- a/daemon/main.go +++ b/daemon/main.go @@ -9,8 +9,6 @@ import ( "github.com/kardianos/service" ) -var logger service.Logger - type Daemon struct{} func (d *Daemon) Start(s service.Service) error { @@ -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) } }