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 a01af0c
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 @@ -174,11 +174,11 @@ func Do(ctx context.Context, opts *config.Options, urls ...*url.URL) (Reduxer, e
g, ctx := errgroup.WithContext(ctx)
for _, uri := range urls {
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
basename := strings.TrimSuffix(helper.FileName(uri.String(), ""), ".html")
basename = strings.TrimSuffix(basename, ".htm")
ctx = context.WithValue(ctx, ctxBasenameKey, basename)

Check failure on line 179 in reduxer/reduxer.go

View workflow job for this annotation

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

SA1029: should not use empty anonymous struct as key for value; define your own type to avoid collisions (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 a01af0c

Please sign in to comment.