mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-28 21:37:31 +02:00
Code clean
Signed-off-by: yunkunrao <yunkunrao@gmail.com>
This commit is contained in:
parent
82fd606f8f
commit
af814a2af2
@ -67,10 +67,10 @@ func MockDragonflyProvider() *httptest.Server {
|
|||||||
w.WriteHeader(http.StatusAlreadyReported)
|
w.WriteHeader(http.StatusAlreadyReported)
|
||||||
_, _ = w.Write([]byte(`{"ID":""}`))
|
_, _ = w.Write([]byte(`{"ID":""}`))
|
||||||
return
|
return
|
||||||
} else {
|
|
||||||
preheatMap[image.Digest] = struct{}{}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
preheatMap[image.Digest] = struct{}{}
|
||||||
|
|
||||||
if image.Type == "image" &&
|
if image.Type == "image" &&
|
||||||
image.URL == "https://harbor.com" &&
|
image.URL == "https://harbor.com" &&
|
||||||
image.ImageName == "busybox" &&
|
image.ImageName == "busybox" &&
|
||||||
|
Loading…
Reference in New Issue
Block a user