Skip to content

Commit

Permalink
Fix coverage issue for #3063 (#3155)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
(cherry picked from commit 95a1643)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Nov 14, 2024
1 parent ce6086b commit c2bd495
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 c2bd495

Please sign in to comment.