mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
pkg/pidfile: remove named err-returns
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
// failing to read the file, or if the file doesn't exist, but malformed content
|
||||
// is ignored. Consumers should therefore check if the returned PID is a non-zero
|
||||
// value before use.
|
||||
func Read(path string) (pid int, err error) {
|
||||
func Read(path string) (pid int, _ error) {
|
||||
pidByte, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
|
||||
Reference in New Issue
Block a user