From: Joel Rosdahl Date: Sat, 6 Nov 2021 15:29:34 +0000 (+0100) Subject: style: Add curly braces around if statement body X-Git-Tag: v4.5~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c32bd3602fbdb691f2479a134fdc1cb5f5f9b83;p=thirdparty%2Fccache.git style: Add curly braces around if statement body --- diff --git a/src/util/path.cpp b/src/util/path.cpp index 5468c47ff..756aef377 100644 --- a/src/util/path.cpp +++ b/src/util/path.cpp @@ -63,8 +63,9 @@ to_absolute_path_no_drive(nonstd::string_view path) { std::string abs_path = to_absolute_path(path); #ifdef _WIN32 - if (abs_path.length() >= 2 && abs_path[1] == ':') + if (abs_path.length() >= 2 && abs_path[1] == ':') { abs_path.erase(0, 2); + } #endif return abs_path; }