Skip to content

Commit

Permalink
fix: cache status size calculation (golangci#3611)
Browse files Browse the repository at this point in the history
  • Loading branch information
johejo authored and SeigeC committed Apr 4, 2023
1 parent 97f108c commit 744cb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/cache.go
Expand Up @@ -64,7 +64,7 @@ func dirSizeBytes(path string) (int64, error) {
var size int64
err := filepath.Walk(path, func(_ string, info os.FileInfo, err error) error {
if err == nil && !info.IsDir() {
size = info.Size()
size += info.Size()
}
return err
})
Expand Down

0 comments on commit 744cb4e

Please sign in to comment.