Skip to content

Commit

Permalink
Make linter green again
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Aug 17, 2024
1 parent c1e6d90 commit 7d2b1b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reduxer/reduxer.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ func Do(ctx context.Context, opts *config.Options, urls ...*url.URL) (Reduxer, e

g, ctx := errgroup.WithContext(ctx)
for _, uri := range urls {
basename := strings.TrimSuffix(helper.FileName(uri.String(), ""), ".html")
basename = strings.TrimSuffix(basename, ".htm")
ctx := context.WithValue(ctx, ctxBasenameKey, basename)

Check failure on line 178 in reduxer/reduxer.go

View workflow job for this annotation

GitHub Actions / golangci-lint / golangci (windows-latest)

shadow: declaration of "ctx" shadows declaration at line 141 (govet)
uri := uri
g.Go(func() error {
basename := strings.TrimSuffix(helper.FileName(uri.String(), ""), ".html")
basename = strings.TrimSuffix(basename, ".htm")
ctx = context.WithValue(ctx, ctxBasenameKey, basename) // nolint:staticcheck

g.Go(func() error {
shot, er := capture(ctx, opts, uri, dir)
if er != nil {
return errors.Wrap(er, "capture failed")
Expand Down

0 comments on commit 7d2b1b1

Please sign in to comment.