Modify WithDiscardUnpackedLayers
Modify the WithDiscardUnpackedLayers function such that it does not require any parameters. Signed-off-by: James Jenkins <James.Jenkins@ibm.com>
This commit is contained in:
@@ -108,9 +108,9 @@ func WithImportCompression() ImportOpt {
|
||||
|
||||
// WithDiscardUnpackedLayers allows the garbage collector to clean up
|
||||
// layers from content store after unpacking.
|
||||
func WithDiscardUnpackedLayers(discard bool) ImportOpt {
|
||||
func WithDiscardUnpackedLayers() ImportOpt {
|
||||
return func(c *importOpts) error {
|
||||
c.discardLayers = discard
|
||||
c.discardLayers = true
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user