Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed May 5, 2023
1 parent b06deb9 commit d348e05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions reduxer/reduxer.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,8 @@ func Do(ctx context.Context, opts *config.Options, urls ...*url.URL) (Reduxer, e

// Generate summary
sum := ""
coh, err := summary.NewCohere(client, opts.CohereApiKey())
if err == nil {
sum, _ = coh.Summarize(article.TextContent)
if coh, err := summary.NewCohere(client, opts.CohereApiKey()); err == nil {
sum, _ = coh.Summarize(article.TextContent) // nolint:errcheck
}

// Upload files to third-party server
Expand Down

0 comments on commit d348e05

Please sign in to comment.