Skip to content

Commit 1450af3

Browse files
authored
chore: fix lint goconst (#3447)
1 parent 98e5b11 commit 1450af3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,7 @@ issues:
6060
linters:
6161
- unused
6262
- errcheck
63+
64+
- path: internal/tabwriter/.*_test\.go
65+
linters:
66+
- goconst

internal/qa/qa.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type WellKnownArgOrderError struct {
7575
}
7676

7777
func (err WellKnownArgOrderError) Error() string {
78-
return "well-known arg order must be respected '" + err.Command.GetCommandLine("scw") + "', arg '" + err.Argspec.Name + "'"
78+
return "well-known arg order must be respected '" + err.Command.GetCommandLine("scw") + "', arg '" + err.Argspec.Name + "'" //nolint: goconst
7979
}
8080

8181
type WellKnownArgAtTheEndError struct {

0 commit comments

Comments
 (0)