otiai10/amesh-bot

View on GitHub
commands/openaicompletion.go

Summary

Maintainability
A
35 mins
Test Coverage

Method AICompletion.Execute has 5 return statements (exceeds 4 allowed).
Open

func (cmd AICompletion) Execute(ctx context.Context, client service.ISlackClient, event slackevents.AppMentionEvent) (err error) {

    forceThreadReply, err := cmd.shouldForceThreadReply(ctx, client, event.Channel)
    if err != nil {
        return err
Severity: Major
Found in commands/openaicompletion.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status