Skip to content

Commit

Permalink
Fix coverage issue for #3063 (#3155) (#3156)
Browse files Browse the repository at this point in the history
(cherry picked from commit 95a1643)

Signed-off-by: Tomoyuki Morita <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 36b46bb commit b1caefb
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 b1caefb

Please sign in to comment.