Skip to content

Commit fd3460e

Browse files
committed
ScanRepositoryUsingGraph(): return the unexpected object type error
1 parent eac12a8 commit fd3460e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sizes/graph.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func ScanRepositoryUsingGraph(
219219
case "tag":
220220
tags = append(tags, ObjectHeader{oid, objectSize})
221221
default:
222-
err = fmt.Errorf("unexpected object type: %s", objectType)
222+
return HistorySize{}, fmt.Errorf("unexpected object type: %s", objectType)
223223
}
224224
}
225225
progressMeter.Done()

0 commit comments

Comments
 (0)