registry/registry.go: simplify logical expression
Signed-off-by: Alexander Morozov <lk4d4@docker.com>master
							parent
							
								
									fc2531f15c
								
							
						
					
					
						commit
						dde006ba6b
					
				| 
						 | 
				
			
			@ -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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue