File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,11 @@ public static List<TestCaseSupplier> stringCases(
110110 @ Override
111111 public TestCase get () {
112112 TestCase supplied = supplier .get ();
113- if (types != null ) {
114- for (int i = 0 ; i < types .size (); i ++) {
115- if (supplied .getData ().get (i ).type () != types .get (i )) {
116- throw new IllegalStateException (
117- name + ": supplier/data type mismatch " + supplied .getData ().get (i ).type () + "/" + types .get (i )
118- );
119- }
113+ for (int i = 0 ; i < types .size (); i ++) {
114+ if (supplied .getData ().get (i ).type () != types .get (i )) {
115+ throw new IllegalStateException (
116+ name + ": supplier/data type mismatch " + supplied .getData ().get (i ).type () + "/" + types .get (i )
117+ );
120118 }
121119 }
122120 return supplied ;
You can’t perform that action at this time.
0 commit comments