Skip to content

Commit

Permalink
Merge variable declaration with assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
withshubh authored and sagikazarmark committed Jul 20, 2021
1 parent 488ccee commit 27f6564
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions log/sync_test.go
Expand Up @@ -58,8 +58,7 @@ func TestSwapLoggerConcurrency(t *testing.T) {
}

func TestSyncLoggerConcurrency(t *testing.T) {
var w io.Writer
w = &bytes.Buffer{}
var w io.Writer = &bytes.Buffer{}
logger := log.NewLogfmtLogger(w)
logger = log.NewSyncLogger(logger)
testConcurrency(t, logger, 10000)
Expand Down

0 comments on commit 27f6564

Please sign in to comment.