Skip to content

Commit

Permalink
noop: stretch linter and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iamwavecut committed Nov 7, 2023
1 parent 4e02594 commit 6be9a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ linters:
- exhaustive # checks exhaustiveness of enum switch statements
- exportloopref # checks for pointers to enclosing loop variables
# - forbidigo # forbids identifiers
- funlen # tool for detection of long functions
# - funlen # tool for detection of long functions
- gocheckcompilerdirectives # validates go compiler directive comments (//go:)
- gochecknoglobals # checks that no global variables exist
- gochecknoinits # checks that no init functions are present in Go code
- gocognit # computes and checks the cognitive complexity of functions
- goconst # finds repeated strings that could be replaced by a constant
# - goconst # finds repeated strings that could be replaced by a constant
- gocritic # provides diagnostics that check for bugs, performance and style issues
- gocyclo # computes and checks the cyclomatic complexity of functions
- godot # checks if comments end in a period
Expand Down
4 changes: 0 additions & 4 deletions internal/handlers/private.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ func apiRequestRoutine(
openaiClient *openai.Client,
result chan string,
) error {
const (
chatGPT4 = "4"
)

instruction := openai.ChatCompletionMessage{
Role: "system",
Content: "Instruction:\n" +
Expand Down

0 comments on commit 6be9a71

Please sign in to comment.