Linting: address default linters
This commit is contained in:
parent
a0bdcca73f
commit
2f629bfae0
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ func CheckValidDevicePath(devPath string) error {
|
||||||
|
|
||||||
isDev := stat.Mode()&os.ModeDevice != 0
|
isDev := stat.Mode()&os.ModeDevice != 0
|
||||||
if !isDev {
|
if !isDev {
|
||||||
fmt.Errorf("file mode is not device (%v)", stat.Mode())
|
return fmt.Errorf("file mode is not device (%v)", stat.Mode())
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue