code cleanup

Signed-off-by: guiyong.ou <guiyong.ou@daocloud.io>
This commit is contained in:
guiyong.ou
2022-07-19 22:46:32 +08:00
parent 11ded166c1
commit 628f6ac681
3 changed files with 5 additions and 5 deletions

View File

@@ -193,7 +193,7 @@ func TestDockerFetcherOpen(t *testing.T) {
req := f.request(host, http.MethodGet)
got, err := f.open(context.TODO(), req, "", 0)
assert.Equal(t, tt.wantErr, (err != nil))
assert.Equal(t, tt.wantErr, err != nil)
assert.Equal(t, tt.want, got)
assert.Equal(t, tt.retries, 0)
if tt.wantErr {