diff options
| author | bogem <[email protected]> | 2016-10-23 14:56:08 +0200 |
|---|---|---|
| committer | bogem <[email protected]> | 2016-10-23 14:56:08 +0200 |
| commit | 86d35458626e9ddb67bad7aa864abb61f99435dc (patch) | |
| tree | 518a3011dbb70992b48c760199ac9a035778ec5f /string_slice.go | |
| parent | dabebe21bf790f782ea4c7bbd2efc430de182afd (diff) | |
Clean up code
Diffstat (limited to 'string_slice.go')
| -rw-r--r-- | string_slice.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/string_slice.go b/string_slice.go index 7829cfa..05eee75 100644 --- a/string_slice.go +++ b/string_slice.go @@ -3,12 +3,9 @@ package pflag import ( "bytes" "encoding/csv" - "fmt" "strings" ) -var _ = fmt.Fprint - // -- stringSlice Value type stringSliceValue struct { value *[]string @@ -39,7 +36,7 @@ func writeAsCSV(vals []string) (string, error) { return "", err } w.Flush() - return strings.TrimSuffix(b.String(), fmt.Sprintln()), nil + return strings.TrimSuffix(b.String(), "\n"), nil } func (s *stringSliceValue) Set(val string) error { |
