Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 3b353f8

Browse files
committed
remove daemon check
1 parent e818460 commit 3b353f8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cmd/root.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import (
4444
)
4545

4646
var json bool
47-
var isDaemon bool
4847

4948
var save bool
5049
var types diffTypes
@@ -162,7 +161,6 @@ func getImageForName(imageName string) (pkgutil.Image, error) {
162161
}
163162
elapsed := time.Now().Sub(start)
164163
logrus.Infof("retrieving image from daemon took %f seconds", elapsed.Seconds())
165-
isDaemon = true
166164
} else {
167165
// either has remote prefix or has no prefix, in which case we force remote
168166
imageName = strings.Replace(imageName, RemotePrefix, "", -1)
@@ -232,10 +230,6 @@ func getImageForName(imageName string) (pkgutil.Image, error) {
232230
}
233231

234232
func getExtractPathForImage(imageName string, image v1.Image) (string, error) {
235-
if isDaemon {
236-
// since we have to compress the image to get the digest, don't cache daemon images
237-
return getExtractPathForName(imageName)
238-
}
239233
start := time.Now()
240234
digest, err := image.Digest()
241235
if err != nil {

0 commit comments

Comments
 (0)