File tree 1 file changed +8
-10
lines changed
server/src/test/java/org/elasticsearch/search/aggregations/bucket/geogrid
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -122,17 +122,15 @@ public void testParseErrorOnPrecisionOutOfRange() throws Exception {
122
122
fail ();
123
123
} catch (XContentParseException ex ) {
124
124
assertThat (ex .getCause (), instanceOf (IllegalArgumentException .class ));
125
- if (type == GeoHashType .GEOHASH ) {
126
- String expectedMsg ;
127
- switch (type ) {
128
- case GEOHASH :
129
- expectedMsg = "Invalid geohash aggregation precision of 13. Must be between 1 and 12." ;
130
- break ;
131
- default :
132
- throw new IllegalArgumentException ("GeoHashType." + type .name () + " was not added to the test" );
133
- }
134
- assertEquals (expectedMsg , ex .getCause ().getMessage ());
125
+ String expectedMsg ;
126
+ switch (type ) {
127
+ case GEOHASH :
128
+ expectedMsg = "Invalid geohash aggregation precision of 13. Must be between 1 and 12." ;
129
+ break ;
130
+ default :
131
+ throw new IllegalArgumentException ("GeoHashType." + type .name () + " was not added to the test" );
135
132
}
133
+ assertEquals (expectedMsg , ex .getCause ().getMessage ());
136
134
}
137
135
}
138
136
}
You can’t perform that action at this time.
0 commit comments