Linting: address default linters

This commit is contained in:
AlexSSD7 2023-09-01 16:40:41 +01:00
commit 2f629bfae0

View file

@ -57,7 +57,7 @@ func CheckValidDevicePath(devPath string) error {
isDev := stat.Mode()&os.ModeDevice != 0
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