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 <dmikusa@vmware.com>
  • Loading branch information
pivotal-david-osullivan and Daniel Mikusa committed May 5, 2022
1 parent ab9e6fe commit a10349d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion count/count_classes.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ package count

import (
"archive/zip"
"errors"
"fmt"
"io/fs"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -121,7 +123,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 a10349d

Please sign in to comment.