Skip to content

Commit

Permalink
fix uncovered lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Schimmelfing committed Jan 14, 2015
1 parent 4c3ce67 commit c6f9e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/csvlint/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ func main() {
fmt.Fprintln(os.Stderr, "Warning: not using defaults, may not validate CSV to RFC 4180")
}

converted_delimiter, err := strconv.Unquote(`'` + *delimiter + `'`)
convertedDelimiter, err := strconv.Unquote(`'` + *delimiter + `'`)
if err != nil {
fmt.Printf("error unquoting delimiter '%s', note that only one-character delimiters are supported\n\n", *delimiter)
printHelpAndExit(1)
}
// don't need to check size since Unquote returns one-character string
comma, _ := utf8.DecodeRuneInString(converted_delimiter)
comma, _ := utf8.DecodeRuneInString(convertedDelimiter)

if len(flag.Args()) != 1 {
fmt.Println("csvlint accepts a single filepath as an argument\n")
Expand Down

0 comments on commit c6f9e43

Please sign in to comment.