From c2bd49503e8ff89c8699e1c06b084311d57b55b6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 14 Nov 2024 19:01:38 +0000 Subject: [PATCH] Fix coverage issue for #3063 (#3155) Signed-off-by: Tomoyuki Morita (cherry picked from commit 95a16436a43ae474ca06aa1011081e3f3fc62ee9) Signed-off-by: github-actions[bot] --- .../sql/protocol/response/format/FlatResponseBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/main/java/org/opensearch/sql/protocol/response/format/FlatResponseBase.java b/protocol/src/main/java/org/opensearch/sql/protocol/response/format/FlatResponseBase.java index be2517bf6c..ee6e2051d2 100644 --- a/protocol/src/main/java/org/opensearch/sql/protocol/response/format/FlatResponseBase.java +++ b/protocol/src/main/java/org/opensearch/sql/protocol/response/format/FlatResponseBase.java @@ -84,7 +84,7 @@ protected List> formatData(List> lines) { protected String quoteIfRequired(String separator, String cell) { final String quote = "\""; - if (cell != null && (cell.contains(separator) || cell.contains(quote))) { + if (cell.contains(separator) || cell.contains(quote)) { return quote + cell.replaceAll(quote, quote + quote) + quote; } else { return cell;