Skip to content

Commit 6a46106

Browse files
committed
simplify
1 parent db2234b commit 6a46106

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/IdentifierGenerator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ public static String randomIndexPattern(Feature... features) {
7878
index.insert(0, "-");
7979
}
8080

81-
var pattern = maybeQuote(index.toString());
81+
var pattern = index.toString();
8282
if (pattern.contains("|")) {
83-
pattern = quote(unquoteIndexPattern(pattern));
83+
pattern = quote(pattern);
8484
}
85+
pattern = maybeQuote(pattern);
8586

8687
if (canAdd(Features.CROSS_CLUSTER, features)) {
8788
var cluster = maybeQuote(randomIdentifier());

0 commit comments

Comments
 (0)