Skip to content

Commit

Permalink
Avoid unnecessary var decl
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrock committed Jun 30, 2018
1 parent 67c4f5c commit 302821a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type OutputConfiguration struct {
}

func (c *OutputConfiguration) Formatter() *colorjson.Formatter {
var formatter *colorjson.Formatter = colorjson.NewFormatter()
formatter := colorjson.NewFormatter()

if c.Expand {
formatter.Indent = 4
Expand Down

0 comments on commit 302821a

Please sign in to comment.