Skip to content

Commit 4426fc9

Browse files
committed
chore: update implementation
1 parent 505ae88 commit 4426fc9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/golinters/goconst/testdata/goconst_eval_and_find_duplicates.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ const (
1010
EnvPassword = envPrefix + "PASSWORD"
1111
)
1212

13-
const EnvUserFull = "FOO_USER" // want "This constant is a duplicate of `EnvUser` at .*goconst_eval_and_find_duplicates.go:9:16"
13+
const EnvUserFull = "FOO_USER" // want "This constant is a duplicate of `EnvUser` at .*goconst_eval_and_find_duplicates.go:9:2"
1414

1515
const KiB = 1 << 10
1616

1717
func _() {
1818
fmt.Println(envPrefix, EnvUser, EnvPassword, EnvUserFull)
1919

20-
const kilobytes = 1024 // want "This constant is a duplicate of `KiB` at .*goconst_eval_and_find_duplicates.go:15:13"
20+
const kilobytes = 1024 // want "This constant is a duplicate of `KiB` at .*goconst_eval_and_find_duplicates.go:15:7"
2121
fmt.Println(kilobytes)
2222

2323
kib := 1024

0 commit comments

Comments
 (0)