Skip to content

Commit 49e6d53

Browse files
sangyongchoichristophstrobl
authored andcommitted
Remove duplicate condition in GeoConverters.
Closes: #3981
1 parent 7a24dcf commit 49e6d53

File tree

1 file changed

+0
-5
lines changed
  • spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert

1 file changed

+0
-5
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java

-5
Original file line numberDiff line numberDiff line change
@@ -482,11 +482,6 @@ public Document convert(GeoCommand source) {
482482
argument.add(toList(((Circle) shape).getCenter()));
483483
argument.add(((Circle) shape).getRadius().getNormalizedValue());
484484

485-
} else if (shape instanceof Circle) {
486-
487-
argument.add(toList(((Circle) shape).getCenter()));
488-
argument.add(((Circle) shape).getRadius());
489-
490485
} else if (shape instanceof Polygon) {
491486

492487
for (Point point : ((Polygon) shape).getPoints()) {

0 commit comments

Comments
 (0)