mirror of
https://github.com/grafana/grafana.git
synced 2025-01-24 23:37:01 -06:00
pkg/cmd/grafana-server/server.go: Check sendSystemdNotification return value.
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=errcheck ./...
server.go:165:25⚠️ error return value not checked (sendSystemdNotification("READY=1")) (errcheck)
This commit is contained in:
parent
dae7c11a5f
commit
774ad3ff39
@ -162,7 +162,11 @@ func (g *GrafanaServerImpl) Run() error {
|
||||
})
|
||||
}
|
||||
|
||||
sendSystemdNotification("READY=1")
|
||||
err = sendSystemdNotification("READY=1")
|
||||
if err != nil {
|
||||
return fmt.Errorf("Could not send systemd notification: %v", err)
|
||||
}
|
||||
|
||||
return g.childRoutines.Wait()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user