Skip to content

Commit e281877

Browse files
committed
use errors.Is
1 parent fdfb660 commit e281877

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pipe/memorylimit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func killAtLimit(byteLimit uint64, eventHandler func(e *Event)) memoryWatchFunc
5858
return
5959
case <-t.C:
6060
rss, err := stage.GetRSSAnon(ctx)
61-
if err != nil && err != errProcessInfoMissing {
61+
if err != nil && !errors.Is(err, errProcessInfoMissing) {
6262
consecutiveErrors++
6363
if consecutiveErrors >= 2 {
6464
eventHandler(&Event{

0 commit comments

Comments
 (0)