Skip to content

Commit 7e09273

Browse files
committed
Fix bson/encode_test.go to pass gofmt -s
Change-Id: Iaa10ef6683c156be402a49c0c7e2109b67504e3d
1 parent 5fea144 commit 7e09273

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bson/encode_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,17 +1100,18 @@ func TestZeoerInterfaceUsedByDecoder(t *testing.T) {
11001100

11011101
}
11021102

1103-
type timePrtStruct struct { TimePtrField *time.Time }
1104-
func TestRegressionNoDereferenceNilTimePtr (t *testing.T) {
1103+
type timePrtStruct struct{ TimePtrField *time.Time }
1104+
1105+
func TestRegressionNoDereferenceNilTimePtr(t *testing.T) {
11051106
enc := &encoder{}
11061107

1107-
assert.NotPanics(t, func () {
1108+
assert.NotPanics(t, func() {
11081109
res, err := enc.encodeStruct(reflect.ValueOf(timePrtStruct{}))
11091110
assert.Len(t, res, 1)
11101111
assert.Nil(t, err)
11111112
})
11121113

1113-
assert.NotPanics(t, func () {
1114+
assert.NotPanics(t, func() {
11141115
res, err := enc.encodeSliceAsArray(reflect.ValueOf([]*time.Time{nil, nil, nil}), false)
11151116
assert.Len(t, res, 3)
11161117
assert.Nil(t, err)

0 commit comments

Comments
 (0)