diff --git a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/TestCaseSupplier.java b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/TestCaseSupplier.java index d0631f153428d..6165ce0f0f578 100644 --- a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/TestCaseSupplier.java +++ b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/TestCaseSupplier.java @@ -955,8 +955,7 @@ public TypedData(Object data, String name) { @Override public String toString() { - if (type == DataTypes.UNSIGNED_LONG && data != null) { - if (data instanceof Long longData) { + if (type == DataTypes.UNSIGNED_LONG && data instanceof Long longData) { return type.toString() + "(" + NumericUtils.unsignedLongAsBigInteger(longData).toString() + ")"; } }