Skip to content

Commit

Permalink
Make fingerprint files counter more accuarate (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwareus authored Oct 31, 2023
1 parent a0a7184 commit 7a11f0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/fingerprint/fingerprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ func (f *Fingerprinter) FingerprintFiles(rootPath string, exclusions []string) (
nbFiles := 0

err := filepath.Walk(rootPath, func(path string, fileInfo os.FileInfo, err error) error {
nbFiles++

if err != nil {
return err
}
Expand All @@ -134,6 +132,7 @@ func (f *Fingerprinter) FingerprintFiles(rootPath string, exclusions []string) (
return nil
}

nbFiles++
fingerprint, err := computeMD5(path)
if err != nil {
return err
Expand Down

0 comments on commit 7a11f0f

Please sign in to comment.