1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix some go_vet issues

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2018-12-19 23:57:06 +01:00
parent 40f245b7c8
commit 9c83124302
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
3 changed files with 2 additions and 3 deletions

View file

@ -53,7 +53,6 @@ func mount(device, target, mType string, flags uintptr, data string) error {
flags: flags & pflags,
err: err,
}
return err
}
}

View file

@ -14,7 +14,7 @@ import (
func Lstat(path string) (*StatT, error) {
s := &syscall.Stat_t{}
if err := syscall.Lstat(path, s); err != nil {
return nil, &os.PathError{"Lstat", path, err}
return nil, &os.PathError{Op: "Lstat", Path: path, Err: err}
}
return fromStatT(s)
}

View file

@ -60,7 +60,7 @@ func (s StatT) IsDir() bool {
func Stat(path string) (*StatT, error) {
s := &syscall.Stat_t{}
if err := syscall.Stat(path, s); err != nil {
return nil, &os.PathError{"Stat", path, err}
return nil, &os.PathError{Op: "Stat", Path: path, Err: err}
}
return fromStatT(s)
}