Skip to content

Commit

Permalink
Last cleanups from CR
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Shah committed Feb 21, 2017
1 parent 3ba540d commit 1e69a29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions global.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ func S() *SugaredLogger {
//
// It's safe for concurrent use.
func ReplaceGlobals(logger *Logger) func() {
// This doesn't require synchronization to be safe, since pointers are a
// single word.
_globalMu.Lock()
prev := _globalL
_globalL = logger
Expand Down
8 changes: 4 additions & 4 deletions global_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import (
"testing"
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/atomic"

"go.uber.org/zap/internal/observer"
"go.uber.org/zap/testutils"
"go.uber.org/zap/zapcore"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/atomic"
)

func TestReplaceGlobals(t *testing.T) {
Expand Down

0 comments on commit 1e69a29

Please sign in to comment.