Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
notJoon committed Sep 30, 2024
1 parent 6b83bb6 commit 1513ce0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/fixer/fixer.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (f *Fixer) Fix(filename string, issues []tt.Issue) error {
return nil
}

func (c *Fixer) extractIndent(line string) string {
func (f *Fixer) extractIndent(line string) string {
return line[:len(line)-len(strings.TrimLeft(line, " \t"))]
}

Expand Down
1 change: 0 additions & 1 deletion internal/lints/cyclomatic_complexity.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func DetectHighCyclomaticComplexity(filename string, threshold int) ([]tt.Issue,

for _, stat := range stats {
if stat.Complexity > threshold {

funcNode, ok := funcNodes[stat.FuncName]
if !ok {
continue
Expand Down
1 change: 1 addition & 0 deletions internal/lints/simplify_slice_expr.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint:goconst
package lints

import (
Expand Down

0 comments on commit 1513ce0

Please sign in to comment.