From 1239337577a8ee05160a591977023984ca690ced Mon Sep 17 00:00:00 2001 From: Patryk Gruszka Date: Thu, 16 Nov 2023 08:19:48 +0000 Subject: [PATCH] Bug 1862507 - mozStorageSQLFunctions.cpp: do not use 'else' after 'return'. r=sylvestre DONTBUILD Differential Revision: https://phabricator.services.mozilla.com/D193493 --- storage/mozStorageSQLFunctions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/mozStorageSQLFunctions.cpp b/storage/mozStorageSQLFunctions.cpp index cfeff70b8c4d..c05010c2ff1e 100644 --- a/storage/mozStorageSQLFunctions.cpp +++ b/storage/mozStorageSQLFunctions.cpp @@ -83,7 +83,8 @@ int likeCompare(nsAString::const_iterator aPatternItr, // No match return 0; - } else if (!lastWasEscape && *aPatternItr == MATCH_ONE) { + } + if (!lastWasEscape && *aPatternItr == MATCH_ONE) { // CASE 2 if (aStringItr == aStringEnd) { // If we've hit the end of the string we are testing, no match