Skip to content

Commit

Permalink
Update count/count_classes.go
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Mikusa <[email protected]>
  • Loading branch information
pivotal-david-osullivan and Daniel Mikusa authored May 5, 2022
1 parent ab9e6fe commit 114d2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion count/count_classes.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func JarClassesFrom(paths ...string) (int, int, error) {
for _, path := range paths {
if c, err := JarClasses(path); err == nil {
agentClassCount += c
} else if strings.Contains(err.Error(), "no such file or directory") {
} else if errors.Is(err, fs.ErrNotExist) {
skippedPaths++
continue
} else {
Expand Down

0 comments on commit 114d2c4

Please sign in to comment.