From 497cc6f935829efc99e1b47c64293a758b37cab6 Mon Sep 17 00:00:00 2001 From: Qrox Date: Thu, 31 Dec 2020 21:15:30 +0800 Subject: [PATCH] Fix clang-tidy warning --- src/json.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.cpp b/src/json.cpp index 3a79ec65b788e..d2ae168e5e3df 100644 --- a/src/json.cpp +++ b/src/json.cpp @@ -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 ); @@ -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; }