parent
							
								
									d5160a0211
								
							
						
					
					
						commit
						7f7cb82149
					
				| 
						 | 
					@ -284,6 +284,7 @@ func (r *Session) GetRemoteImageLayer(imgID, registry string, imgSize int64) (io
 | 
				
			||||||
	res, err = r.client.Do(req)
 | 
						res, err = r.client.Do(req)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		logrus.Debugf("Error contacting registry %s: %v", registry, err)
 | 
							logrus.Debugf("Error contacting registry %s: %v", registry, err)
 | 
				
			||||||
 | 
							// the only case err != nil && res != nil is https://golang.org/src/net/http/client.go#L515
 | 
				
			||||||
		if res != nil {
 | 
							if res != nil {
 | 
				
			||||||
			if res.Body != nil {
 | 
								if res.Body != nil {
 | 
				
			||||||
				res.Body.Close()
 | 
									res.Body.Close()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue