]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
style: Add curly braces around if statement body
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 6 Nov 2021 15:29:34 +0000 (16:29 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 6 Nov 2021 18:17:53 +0000 (19:17 +0100)
src/util/path.cpp

index 5468c47ff00e7a997ea17971a7bd2e3586cb127f..756aef37779d0d92736ed5aeb50f4f94e0b15ab6 100644 (file)
@@ -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;
 }