forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go vet in 1.18 is more picky about fmt.*rintln and additional newlines at the end of output, thus producing errors like: ./cmd_info_test.go:1197:4: fmt.Fprintln arg list ends with redundant newline ./cmd_info_test.go:1201:4: fmt.Fprintln arg list ends with redundant newline ./cmd_routine_portal_info_test.go:101:4: fmt.Fprintln arg list ends with redundant newline ./cmd_routine_portal_info_test.go:161:4: fmt.Fprintln arg list ends with redundant newline ./cmd_run_test.go:1755:5: fmt.Fprintln arg list ends with redundant newline See golang/go#49350 and https://go.dev/doc/go1.18#vet Although I believe we should not be hitting this case, still it does not make sense to output so many newlines, so it's worth fixing. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
- Loading branch information
Showing
5 changed files
with
31 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters