From d348e055b8182281c7984c8c37d9103a9e1ad5a9 Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Fri, 5 May 2023 09:57:12 +0100 Subject: [PATCH] Fix linter --- reduxer/reduxer.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reduxer/reduxer.go b/reduxer/reduxer.go index 9161eb9d..9e6bb2d0 100644 --- a/reduxer/reduxer.go +++ b/reduxer/reduxer.go @@ -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