Skip to content

Commit

Permalink
Fix coverage issue for opensearch-project#3063
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 committed Nov 14, 2024
1 parent cfe38d7 commit f7a3565
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected List<List<String>> formatData(List<List<String>> 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;
Expand Down

0 comments on commit f7a3565

Please sign in to comment.