Skip to content

Commit 55e97e9

Browse files
committed
docker: Fix signature for downloadConfigFile()
Signed-off-by: Simarpreet Singh <[email protected]>
1 parent aac5527 commit 55e97e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extractor/docker/docker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func (d DockerExtractor) Extract(ctx context.Context, imageName string, filename
214214
}
215215

216216
// download config file
217-
config, err := downloadConfigFile(err, r, ctx, image, m)
217+
config, err := downloadConfigFile(ctx, r, image, m)
218218
if err != nil {
219219
return nil, err
220220
}
@@ -225,7 +225,7 @@ func (d DockerExtractor) Extract(ctx context.Context, imageName string, filename
225225
return fileMap, nil
226226
}
227227

228-
func downloadConfigFile(err error, r *registry.Registry, ctx context.Context, image registry.Image, m *schema2.DeserializedManifest) ([]byte, error) {
228+
func downloadConfigFile(ctx context.Context, r *registry.Registry, image registry.Image, m *schema2.DeserializedManifest) ([]byte, error) {
229229
rc, err := r.DownloadLayer(ctx, image.Path, m.Manifest.Config.Digest)
230230
if err != nil {
231231
return nil, xerrors.Errorf("error in layer download: %w", err)

0 commit comments

Comments
 (0)