Use new gofumpt (#21613)

Update tinylib. Should fix CI.

`gofumpt -w .&&go generate ./...`
This commit is contained in:
Klaus Post
2025-09-28 22:59:21 +02:00
committed by GitHub
parent 456d9462e5
commit b8631cf531
171 changed files with 881 additions and 899 deletions

View File

@@ -390,7 +390,7 @@ func getDiskInfo(drivePath string) (di disk.Info, rootDrive bool, err error) {
err = errFaultyDisk
}
return
return di, rootDrive, err
}
// Implements stringer compatible interface.
@@ -2374,23 +2374,23 @@ func (s *xlStorage) checkPart(volumeDir, path, dataDir string, partNum int, expe
if osIsNotExist(verr) {
resp = checkPartVolumeNotFound
}
return
return resp
}
}
}
if osErrToFileErr(err) == errFileNotFound {
resp = checkPartFileNotFound
}
return
return resp
}
if st.Mode().IsDir() {
resp = checkPartFileNotFound
return
return resp
}
// Check if shard is truncated.
if st.Size() < expectedSize {
resp = checkPartFileCorrupt
return
return resp
}
return checkPartSuccess
}