Skip to content

Commit 0617d80

Browse files
resolved linter
1 parent 5f3d9f1 commit 0617d80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/detectors/github/v2/github.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
8484
}
8585

8686
if verify {
87-
s.verifyOrGetCachedResult(ctx, client, token, &s1)
87+
if err := s.verifyOrGetCachedResult(ctx, client, token, &s1); err != nil {
88+
return results, err
89+
}
8890
}
8991

9092
results = append(results, s1)

0 commit comments

Comments
 (0)