From 114d2c4109f23bbbab0734462011c7ebea0a86d0 Mon Sep 17 00:00:00 2001 From: David O'Sullivan <31728678+pivotal-david-osullivan@users.noreply.github.com> Date: Thu, 5 May 2022 19:45:30 +0100 Subject: [PATCH] Update count/count_classes.go Co-authored-by: Daniel Mikusa --- count/count_classes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/count/count_classes.go b/count/count_classes.go index 40c3257..9344c39 100644 --- a/count/count_classes.go +++ b/count/count_classes.go @@ -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 {