Skip to content

Commit

Permalink
don't complain about commented openai things
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Oct 12, 2023
1 parent e07d69a commit 6077882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ func main() {
log.Fatalf("[ERROR] failed to read spam samples file %s, %v", opts.SpamFilter.Samples, err)
}
spamReaderLocal := bytes.NewReader(spamContent)
// spamReaderAI := bytes.NewReader(spamContent)
// spamReaderAI := bytes.NewReader(spamContent) //nolint

Check failure on line 162 in app/main.go

View workflow job for this annotation

GitHub Actions / build

commentedOutCode: may want to remove commented-out code (gocritic)
multiBot = append(multiBot,
bot.NewSpamLocalFilter(spamReaderLocal, opts.SpamFilter.Threshold, opts.SuperUsers, opts.SpamFilter.Dry),
// bot.NewSpamOpenAIFilter(spamReaderAI, openAIBot, opts.OpenAI.MaxSymbolsRequest, opts.SuperUsers, opts.SpamFilter.Dry),
// bot.NewSpamOpenAIFilter(spamReaderAI, openAIBot, opts.OpenAI.MaxSymbolsRequest, opts.SuperUsers, opts.SpamFilter.Dry), //nolint
)
}
} else {
Expand Down

0 comments on commit 6077882

Please sign in to comment.