fixing lint fmt errors

This commit is contained in:
DmitryFrolovTri
2025-12-11 13:04:39 +00:00
parent e709a88254
commit de1b2d8ab8
4 changed files with 76 additions and 51 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ func CountObjectsWithEnv(ctx context.Context, repoPath string, env []string) (*C
// parseSize parses the output from count-objects and return a CountObject
func parseSize(objects string) *CountObject {
repoSize := new(CountObject)
for _, line := range strings.Split(objects, "\n") {
for line := range strings.SplitSeq(objects, "\n") {
switch {
case strings.HasPrefix(line, statCount):
repoSize.Count, _ = strconv.ParseInt(line[7:], 10, 64)