summaryrefslogtreecommitdiff
path: root/jstests/core/geo_s2polywithholes.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_s2polywithholes.js')
-rwxr-xr-xjstests/core/geo_s2polywithholes.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/geo_s2polywithholes.js b/jstests/core/geo_s2polywithholes.js
index b3fcb51726b..85aafccdb68 100755
--- a/jstests/core/geo_s2polywithholes.js
+++ b/jstests/core/geo_s2polywithholes.js
@@ -31,8 +31,8 @@ assert.writeError(t.insert({geo: polygonWithProtrudingHole}));
// Can't search with bogus poly.
assert.throws(function() {
- return t.find({geo: {$within: {$geometry: polygonWithProtrudingHole}}}).itcount()
-})
+ return t.find({geo: {$within: {$geometry: polygonWithProtrudingHole}}}).itcount();
+});
// Test 3: This test will confirm that a polygon with overlapping holes throws
// an error.