Apply linter autofixes: internal/globals, log, models, pidlock, s3 (refs #61)
This commit is contained in:
@@ -77,6 +77,7 @@ func (l *Lock) Release() error {
|
||||
}
|
||||
|
||||
l.path = "" // Prevent double-release
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -104,5 +105,6 @@ func isProcessRunning(pid int) bool {
|
||||
|
||||
// On Unix, FindProcess always succeeds. We need to send signal 0 to check.
|
||||
err = process.Signal(syscall.Signal(0))
|
||||
|
||||
return err == nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user