Fix CI suite warnings

This commit is contained in:
AlexSSD7 2023-09-27 13:42:48 +01:00
commit 033d24dbde
3 changed files with 5 additions and 5 deletions

View file

@ -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")
}