From 5c32bd3602fbdb691f2479a134fdc1cb5f5f9b83 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sat, 6 Nov 2021 16:29:34 +0100 Subject: [PATCH] style: Add curly braces around if statement body --- src/util/path.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.47.2