Fix CI suite warnings
This commit is contained in:
parent
4b5e8490bc
commit
033d24dbde
3 changed files with 5 additions and 5 deletions
|
|
@ -91,7 +91,7 @@ func CheckRunAsRoot() (bool, error) {
|
|||
}
|
||||
|
||||
func GetDeviceLogicalBlockSize(devPath string) (uint64, error) {
|
||||
fd, err := os.Open(devPath)
|
||||
fd, err := os.Open(filepath.Clean(devPath))
|
||||
if err != nil {
|
||||
return 0, errors.Wrap(err, "open device")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue