mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Small if err cleaning
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
This commit is contained in:
		
							parent
							
								
									531ec3cac9
								
							
						
					
					
						commit
						844538142d
					
				
					 29 changed files with 51 additions and 74 deletions
				
			
		| 
						 | 
				
			
			@ -597,8 +597,7 @@ func (r *Session) SearchRepositories(term string) (*SearchResults, error) {
 | 
			
		|||
		return nil, httputils.NewHTTPRequestError(fmt.Sprintf("Unexpected status code %d", res.StatusCode), res)
 | 
			
		||||
	}
 | 
			
		||||
	result := new(SearchResults)
 | 
			
		||||
	err = json.NewDecoder(res.Body).Decode(result)
 | 
			
		||||
	return result, err
 | 
			
		||||
	return result, json.NewDecoder(res.Body).Decode(result)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (r *Session) GetAuthConfig(withPasswd bool) *cliconfig.AuthConfig {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue