mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Removed redundant err == nil check
Signed-off-by: Anes Hasicic <anes.hasicic@gmail.com>
This commit is contained in:
		
							parent
							
								
									bc0f1e0e09
								
							
						
					
					
						commit
						b38e11b3c4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -60,7 +60,7 @@ func TestTruncIndex(t *testing.T) {
 | 
				
			||||||
	assertIndexGet(t, index, id[:1], "", true)
 | 
						assertIndexGet(t, index, id[:1], "", true)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// An ambiguous id prefix should return an error
 | 
						// An ambiguous id prefix should return an error
 | 
				
			||||||
	if _, err := index.Get(id[:4]); err == nil || err == nil {
 | 
						if _, err := index.Get(id[:4]); err == nil {
 | 
				
			||||||
		t.Fatal("An ambiguous id prefix should return an error")
 | 
							t.Fatal("An ambiguous id prefix should return an error")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue