cmd/ctr: fix export command

Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
This commit is contained in:
Iceber Gu
2021-03-15 13:22:56 +08:00
parent e231b955dd
commit 231bbdc379

View File

@@ -111,7 +111,7 @@ When '--all-platforms' is given all images in a manifest list must be available.
} else {
w, err = os.Create(out)
if err != nil {
return nil
return err
}
}
defer w.Close()