Skip to content

Commit afb5317

Browse files
committed
chore: windows, windows, windows, ...
1 parent 6aea1df commit afb5317

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/golinters/goconst/goconst.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package goconst
22

33
import (
44
"fmt"
5+
"path/filepath"
56
"sync"
67

78
goconstAPI "github.com/jgautheron/goconst"
@@ -100,7 +101,7 @@ func runGoconst(pass *analysis.Pass, settings *config.GoConstSettings) ([]goanal
100101
case issue.DuplicateConst != "":
101102
text = fmt.Sprintf("This constant is a duplicate of %s at %s",
102103
internal.FormatCode(issue.DuplicateConst, nil),
103-
issue.DuplicatePos.String())
104+
filepath.ToSlash(issue.DuplicatePos.String()))
104105

105106
default:
106107
continue

0 commit comments

Comments
 (0)