Skip to content

Commit

Permalink
Issue.Line is already a string
Browse files Browse the repository at this point in the history
  • Loading branch information
lanzafame committed Oct 1, 2017
1 parent 3caf7c3 commit 9c959ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion issue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var _ = Describe("Issue", func() {
issue := gas.NewIssue(ctx, target, "", gas.High, gas.High)
Expect(issue).ShouldNot(BeNil())
Expect(issue.Code).Should(MatchRegexp(`"bar"`))
Expect(issue.Line).Should(Equal(2))
Expect(issue.Line).Should(Equal("2"))

})

Expand Down
3 changes: 1 addition & 2 deletions output/formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"encoding/json"
htmlTemplate "html/template"
"io"
"strconv"
plainTemplate "text/template"

"github.com/GoASTScanner/gas"
Expand Down Expand Up @@ -93,7 +92,7 @@ func reportCSV(w io.Writer, data *reportInfo) error {
for _, issue := range data.Issues {
err := out.Write([]string{
issue.File,
strconv.Itoa(issue.Line),
issue.Line,
issue.What,
issue.Severity.String(),
issue.Confidence.String(),
Expand Down

0 comments on commit 9c959ca

Please sign in to comment.