Skip to content

Commit e6fce75

Browse files
sangyongchoichristophstrobl
authored andcommitted
Remove duplicate condition in GeoConverters.
Closes: #3981
1 parent e75f022 commit e6fce75

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
@@ -438,11 +438,6 @@ public Document convert(GeoCommand source) {
438438
argument.add(toList(((Circle) shape).getCenter()));
439439
argument.add(((Circle) shape).getRadius().getNormalizedValue());
440440

441-
} else if (shape instanceof Circle) {
442-
443-
argument.add(toList(((Circle) shape).getCenter()));
444-
argument.add(((Circle) shape).getRadius());
445-
446441
} else if (shape instanceof Polygon) {
447442

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

0 commit comments

Comments
 (0)