Skip to content

Commit

Permalink
Fix clang-tidy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Qrox committed Dec 31, 2020
1 parent 247a561 commit 497cc6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@ static std::string escape_property( std::string str )
break;
case error_log_format_t::github_action:
replace_substring( str, "%", "%25", true );
replace_substring( str, "\r", "%0D", true );
replace_substring( str, "\r", "%0D", true ); // NOLINT(cata-text-style)
replace_substring( str, "\n", "%0A", true );
replace_substring( str, ":", "%3A", true );
replace_substring( str, ",", "%2C", true );
Expand All @@ -1728,7 +1728,7 @@ static std::string escape_data( std::string str )
break;
case error_log_format_t::github_action:
replace_substring( str, "%", "%25", true );
replace_substring( str, "\r", "%0D", true );
replace_substring( str, "\r", "%0D", true ); // NOLINT(cata-text-style)
replace_substring( str, "\n", "%0A", true );
break;
}
Expand Down

0 comments on commit 497cc6f

Please sign in to comment.