Skip to content

Commit

Permalink
Fix staticcheck errors
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <ys@uber.com>
  • Loading branch information
Yuri Shkuro committed Sep 7, 2019
1 parent 9c5df49 commit 4e30acc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/collector/app/zipkin/http_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func TestSaveProtoSpansV2(t *testing.T) {
require.NoError(t, err)
assert.EqualValues(t, http.StatusAccepted, statusCode)

invalidSpans := struct{ key string }{key: "foo"}
invalidSpans := struct{ Key string }{Key: "foo"}
reqBytes, _ = json.Marshal(&invalidSpans)
statusCode, resBody, err := postBytes(server.URL+`/api/v2/spans`, reqBytes, createHeader("application/x-protobuf"))
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/env/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func Command() *cobra.Command {
Short: "Help about environment variables.",
Long: long,
Run: func(cmd *cobra.Command, args []string) {
fmt.Fprintf(cmd.OutOrStdout(), long)
fmt.Fprint(cmd.OutOrStdout(), long)
},
}
}

0 comments on commit 4e30acc

Please sign in to comment.