Skip to content

Commit 74822c2

Browse files
committed
Remove unnecessary throws IOException
1 parent a277aea commit 74822c2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

server/src/main/java/org/elasticsearch/index/mapper/KeywordFieldMapper.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,14 +1186,10 @@ protected void indexScriptValues(
11861186
}
11871187

11881188
private boolean indexValue(DocumentParserContext context, String value) {
1189-
try {
1190-
return indexValue(context, new RawString(value));
1191-
} catch (IOException e) {
1192-
throw new RuntimeException(e);
1193-
}
1189+
return indexValue(context, new RawString(value));
11941190
}
11951191

1196-
private boolean indexValue(DocumentParserContext context, RawString value) throws IOException {
1192+
private boolean indexValue(DocumentParserContext context, RawString value) {
11971193
if (value == null) {
11981194
return false;
11991195
}

0 commit comments

Comments
 (0)