simplify test code using the if with a short statement
This commit is contained in:
		| @@ -349,8 +349,7 @@ func TestRepairServiceIP(t *testing.T) { | |||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
|  |  | ||||||
| 			err := r.runOnce() | 			if err := r.runOnce(); err != nil { | ||||||
| 			if err != nil { |  | ||||||
| 				t.Fatal(err) | 				t.Fatal(err) | ||||||
| 			} | 			} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Antonio Ojea
					Antonio Ojea