From b3e192a4e1de8611f09b35f066a691a482036d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 24 Jan 2020 21:34:47 +0100 Subject: [PATCH] astyle formatting [ci skip] --- lib/utils.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/utils.h b/lib/utils.h index e2fb965a6..dbd93e844 100644 --- a/lib/utils.h +++ b/lib/utils.h @@ -148,8 +148,7 @@ inline static bool matchglob(const std::string& pattern, const std::string& name // Any character matches unless we're at the end of the name if (*n != '\0') { n++; - } - else { + } else { matching = false; } break; @@ -157,14 +156,11 @@ inline static bool matchglob(const std::string& pattern, const std::string& name // Non-wildcard characters match literally if (*n == *p) { n++; - } - else if (*n == '\\' && *p == '/') { + } else if (*n == '\\' && *p == '/') { n++; - } - else if (*n == '/' && *p == '\\') { + } else if (*n == '/' && *p == '\\') { n++; - } - else { + } else { matching = false; } break;