Skip to content

Commit

Permalink
registry/registry.go: simplify logical expression
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Morozov <[email protected]>
  • Loading branch information
LK4D4 committed Nov 18, 2015
1 parent e2417e3 commit 90e2459
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ func ContinueOnError(err error) bool {
case *client.UnexpectedHTTPResponseError:
return true
case error:
if val := strings.Contains(err.Error(), strings.ToLower(syscall.ENOSPC.Error())); val {
return false
}
return !strings.Contains(err.Error(), strings.ToLower(syscall.ENOSPC.Error()))
}
// let's be nice and fallback if the error is a completely
// unexpected one.
Expand Down

0 comments on commit 90e2459

Please sign in to comment.