From 444897a8b82d437d7521ced8ab6c357086ecc7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 16 May 2023 18:25:31 +0200 Subject: [PATCH] Some reordering to make the code make more sense (no actual effect) --- Common/File/AndroidContentURI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Common/File/AndroidContentURI.cpp b/Common/File/AndroidContentURI.cpp index 766dfa4446..6456b8cad2 100644 --- a/Common/File/AndroidContentURI.cpp +++ b/Common/File/AndroidContentURI.cpp @@ -148,12 +148,12 @@ std::string AndroidContentURI::GetLastPart() const { if (!CanNavigateUp()) { size_t colon = file.rfind(':'); - if (file.back() == ':') { - return file; - } if (colon == std::string::npos) { return std::string(); } + if (file.back() == ':') { + return file; + } return file.substr(colon + 1); }