Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Dec 15, 2023
1 parent d939c6a commit 0d2ab43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/extractor/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func writeFile(ctx context.Context, path string, f archiver.File) error {
return err
}

func writeSymlink(ctx context.Context, path string, f archiver.File) error {
func writeSymlink(_ context.Context, path string, f archiver.File) error {
if f.LinkTarget == "" {
return errors.Errorf("symlink target is empty for %s", f.Name())
}
Expand Down
4 changes: 2 additions & 2 deletions internal/extractor/image/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ func (c *Client) srcCtx(name string, insecure bool) (*types.SystemContext, *Sour
return sysCtx, NewSource(name), nil
}

func (c *Client) dstCtx(name string) (*types.SystemContext, error) {
func (c *Client) dstCtx(cacheDir string) (*types.SystemContext, error) {
return &types.SystemContext{
DirForceDecompress: true,
BlobInfoCacheDir: filepath.Join(c.cli.CacheDir, "blobs"),
BlobInfoCacheDir: filepath.Join(cacheDir, "blobs"),
}, nil
}

Expand Down

0 comments on commit 0d2ab43

Please sign in to comment.