Update source files for bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:59:03 -05:00
parent d84b07a5cb
commit 3af3eab3e4
366 changed files with 7275 additions and 3834 deletions

View File

@ -24,8 +24,9 @@ std::string GenerateHeaders(const HeaderMap& map) {
if (!key.empty()) {
// Delimit with "\r\n".
if (!headers.empty())
if (!headers.empty()) {
headers += "\r\n";
}
headers += std::string(key) + ": " + std::string(value);
}
@ -50,8 +51,9 @@ void MakeASCIILower(std::string* str) {
HeaderMap::iterator FindHeaderInMap(const std::string& nameLower,
HeaderMap& map) {
for (auto it = map.begin(); it != map.end(); ++it) {
if (base::EqualsCaseInsensitiveASCII(it->first.ToString(), nameLower))
if (base::EqualsCaseInsensitiveASCII(it->first.ToString(), nameLower)) {
return it;
}
}
return map.end();