Fixing some lint issues

Signed-off-by: Amim Knabben <amim.knabben@gmail.com>
This commit is contained in:
Amim Knabben
2020-10-02 23:12:29 -04:00
parent bb539a9965
commit 978fa6e906
13 changed files with 35 additions and 23 deletions
+4 -1
View File
@@ -162,7 +162,10 @@ func (n *notifySocket) run(pid1 int) error {
// now we can inform systemd to use pid1 as the pid to monitor
newPid := "MAINPID=" + strconv.Itoa(pid1)
client.Write([]byte(newPid + "\n"))
_, err := client.Write([]byte(newPid + "\n"))
if err != nil {
return err
}
return nil
}
}