Skip to content

cmd/geth: fix extra trailing newline in license command#15782

Merged
fjl merged 1 commit into
ethereum:masterfrom
karalabe:drop-double-newline-license
Jan 2, 2018
Merged

cmd/geth: fix extra trailing newline in license command#15782
fjl merged 1 commit into
ethereum:masterfrom
karalabe:drop-double-newline-license

Conversation

@karalabe
Copy link
Copy Markdown
Member

The geth license command currently prints the license, and adds two newlines at the end. This gets flagged (i.e. compile error) on Go 1.10 since fmt.Println already prints a new line, so no need to double it.

Although we could change the code to retain the current functionality, I don't think there's a particular need to print an empty line after the license, so I've just removed the extra newline character.

@fjl fjl merged commit 413cc5b into ethereum:master Jan 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants