mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-04 04:33:23 +00:00
clang-all (#6941)
This commit is contained in:
@@ -273,8 +273,7 @@ ClassicLocale ClassicLocale::instance_;
|
||||
|
||||
std::string RemoveStringQuotes(const std::string &s) {
|
||||
auto ch = *s.c_str();
|
||||
return ((s.size() >= 2) && (ch == '\"' || ch == '\'') &&
|
||||
(ch == s.back()))
|
||||
return ((s.size() >= 2) && (ch == '\"' || ch == '\'') && (ch == s.back()))
|
||||
? s.substr(1, s.length() - 2)
|
||||
: s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user