Skip to content

Commit 41584bd

Browse files
committed
fix code style
Signed-off-by: lixd <[email protected]>
1 parent 26a395e commit 41584bd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/kubelet/container/testing/fake_runtime.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ type FakeVersion struct {
8181
Version string
8282
}
8383

84-
func snapshot(imageList []kubecontainer.Image) []kubecontainer.Image {
85-
result := make([]kubecontainer.Image, len(imageList))
86-
copy(result, imageList)
87-
return result
88-
}
89-
9084
func (fv *FakeVersion) String() string {
9185
return fv.Version
9286
}
@@ -371,6 +365,12 @@ func (f *FakeRuntime) ListImages(_ context.Context) ([]kubecontainer.Image, erro
371365
return snapshot(f.ImageList), f.Err
372366
}
373367

368+
func snapshot(imageList []kubecontainer.Image) []kubecontainer.Image {
369+
result := make([]kubecontainer.Image, len(imageList))
370+
copy(result, imageList)
371+
return result
372+
}
373+
374374
func (f *FakeRuntime) RemoveImage(_ context.Context, image kubecontainer.ImageSpec) error {
375375
f.Lock()
376376
defer f.Unlock()

0 commit comments

Comments
 (0)