Skip to content

Commit dc1773f

Browse files
jichenjcbd3lage
andauthored
test for ErrNotFound in IsNotFound checklist (kubernetes#1942) (kubernetes#1943)
Co-authored-by: bd3lage <[email protected]>
1 parent e375cc8 commit dc1773f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/util/errors/errors.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ func IsNotFound(err error) bool {
5454
}
5555
}
5656

57+
if err == ErrNotFound {
58+
return true
59+
}
60+
5761
return false
5862
}
5963

0 commit comments

Comments
 (0)