chore: fix npe
This commit is contained in:
parent
f4f7a90f3e
commit
577a50ed5d
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ func backoffPermanentError(err error) error {
|
|||
return backoff.Permanent(se)
|
||||
}
|
||||
}
|
||||
if strings.HasPrefix(err.Error(), "jq: query failed") {
|
||||
if err != nil && strings.HasPrefix(err.Error(), "jq: query failed") {
|
||||
return backoff.Permanent(err)
|
||||
}
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue