Skip to content

Commit 3b7e3cc

Browse files
committed
Fix codenarc highlighted groovy error
1 parent 52e78b9 commit 3b7e3cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-core/src/test/functional/com/mongodb/operation/CreateIndexSpecification.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ class CreateIndexSpecification extends OperationFunctionalSpecification {
285285

286286
then:
287287
getUserCreatedIndexes('key') == [['field' :'2dsphere']]
288-
if (serverVersionAtLeast(asList(2, 6, 0))) getUserCreatedIndexes('2dsphereIndexVersion') == [2]
288+
if (serverVersionAtLeast(asList(2, 6, 0))) { getUserCreatedIndexes('2dsphereIndexVersion') == [2] }
289289
}
290290

291291
@IgnoreIf({ !serverVersionAtLeast(asList(2, 6, 0)) })
@@ -330,7 +330,7 @@ class CreateIndexSpecification extends OperationFunctionalSpecification {
330330

331331
then:
332332
getUserCreatedIndexes().size() == 1
333-
if (serverVersionAtLeast(asList(2, 6, 0))) getUserCreatedIndexes('textIndexVersion') == [2]
333+
if (serverVersionAtLeast(asList(2, 6, 0))) { getUserCreatedIndexes('textIndexVersion') == [2] }
334334
}
335335

336336
@IgnoreIf({ !serverVersionAtLeast(asList(2, 6, 0)) })

0 commit comments

Comments
 (0)