Code clean

Signed-off-by: yunkunrao <yunkunrao@gmail.com>
This commit is contained in:
yunkunrao 2021-06-01 23:13:03 +08:00
parent 82fd606f8f
commit af814a2af2

View File

@ -67,10 +67,10 @@ func MockDragonflyProvider() *httptest.Server {
w.WriteHeader(http.StatusAlreadyReported)
_, _ = w.Write([]byte(`{"ID":""}`))
return
} else {
preheatMap[image.Digest] = struct{}{}
}
preheatMap[image.Digest] = struct{}{}
if image.Type == "image" &&
image.URL == "https://harbor.com" &&
image.ImageName == "busybox" &&