Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Dec 23, 2024
1 parent f9709c7 commit dad08f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"go/ast"
"go/token"
"os"
"path/filepath"
"regexp"
"strings"
)
Expand Down Expand Up @@ -231,7 +232,7 @@ func getText(comment *ast.CommentGroup, exclude []*regexp.Regexp) (s string) {

// readFile reads file and returns its lines as strings.
func readFile(filename string) ([]string, error) {
f, err := os.ReadFile(filename)
f, err := os.ReadFile(filepath.Clean(filename))
if err != nil {
return nil, err //nolint:wrapcheck
}
Expand Down

0 comments on commit dad08f4

Please sign in to comment.