Skip to content

Commit da515ec

Browse files
committed
Quick Save
1 parent e817b12 commit da515ec

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cmds/jsoncols/jsoncols.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ Would yield
7878
generateMarkdownDocs bool
7979
quiet bool
8080
newLine bool
81-
eol string
8281

8382
// Application Specific Options
8483
runInteractive bool
@@ -155,9 +154,6 @@ func main() {
155154
fmt.Fprintln(app.Out, app.Version())
156155
os.Exit(0)
157156
}
158-
if newLine {
159-
eol = "\n"
160-
}
161157

162158
// Handle ordered args to get expressions for each column output.
163159
for _, arg := range args {
@@ -244,5 +240,7 @@ func main() {
244240
}
245241
}
246242
}
247-
fmt.Fprintf(app.Out, "%s", eol)
243+
if newLine {
244+
fmt.Fprintln(app.Out, "")
245+
}
248246
}

0 commit comments

Comments
 (0)