Skip to content

Commit 9c959ca

Browse files
committed
Issue.Line is already a string
1 parent 3caf7c3 commit 9c959ca

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

issue_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var _ = Describe("Issue", func() {
4040
issue := gas.NewIssue(ctx, target, "", gas.High, gas.High)
4141
Expect(issue).ShouldNot(BeNil())
4242
Expect(issue.Code).Should(MatchRegexp(`"bar"`))
43-
Expect(issue.Line).Should(Equal(2))
43+
Expect(issue.Line).Should(Equal("2"))
4444

4545
})
4646

output/formatter.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"encoding/json"
2020
htmlTemplate "html/template"
2121
"io"
22-
"strconv"
2322
plainTemplate "text/template"
2423

2524
"github.com/GoASTScanner/gas"
@@ -93,7 +92,7 @@ func reportCSV(w io.Writer, data *reportInfo) error {
9392
for _, issue := range data.Issues {
9493
err := out.Write([]string{
9594
issue.File,
96-
strconv.Itoa(issue.Line),
95+
issue.Line,
9796
issue.What,
9897
issue.Severity.String(),
9998
issue.Confidence.String(),

0 commit comments

Comments
 (0)