From 4374ba4ac43b60547d3d30d19ab13edf14940c47 Mon Sep 17 00:00:00 2001 From: santicomp2014 Date: Thu, 12 Mar 2020 19:37:06 -0300 Subject: [PATCH] cmd/swarm,pss,swap: fixed linter errors S1038/S1039 --- cmd/swarm/main.go | 2 +- cmd/swarm/upload_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go index b62299e228..bd0c518a53 100644 --- a/cmd/swarm/main.go +++ b/cmd/swarm/main.go @@ -286,7 +286,7 @@ func keys(ctx *cli.Context) error { fmt.Print(fmt.Sprintf("bzzkey=%s", bzzkey[2:]), "\n") fmt.Print(fmt.Sprintf("publicKey=%s", pubkeyhex), "\n") } - fmt.Println(fmt.Sprintf("publicKeyCompressed=%s", pubCompressed)) + fmt.Print(fmt.Sprintf("publicKeyCompressed=%s", pubCompressed), "\n") return nil } diff --git a/cmd/swarm/upload_test.go b/cmd/swarm/upload_test.go index ea2a4d96ac..f6941ad0cb 100644 --- a/cmd/swarm/upload_test.go +++ b/cmd/swarm/upload_test.go @@ -215,7 +215,7 @@ func testRecursive(t *testing.T, cluster *testCluster, toEncrypt bool) { tmpUploadDir} } // upload the file with 'swarm up' and expect a hash - log.Info(fmt.Sprintf("uploading file with 'swarm up'")) + log.Info("uploading file with 'swarm up'") up := runSwarm(t, flags...) _, matches := up.ExpectRegexp(hashRegexp) up.ExpectExit()