Skip to content

Commit 0708668

Browse files
committed
Checkstyle fix
1 parent 713cf88 commit 0708668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/function/scalar/string/ReplaceFunctionProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static Object doProcess(Object input, Object pattern, Object replacement)
5151
if ((input instanceof String || input instanceof Character) == false) {
5252
throw new SqlIllegalArgumentException("A string/char is required; received [{}]", input);
5353
}
54-
if (!(pattern instanceof String || pattern instanceof Character)) {
54+
if ((pattern instanceof String || pattern instanceof Character) == false) {
5555
throw new SqlIllegalArgumentException("A string/char is required; received [{}]", pattern);
5656
}
5757
if ((replacement instanceof String || replacement instanceof Character) == false) {

0 commit comments

Comments
 (0)