From 892512f6e141d07ed3fdcce64288847d0f79ab23 Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 20 Mar 2023 08:19:43 +0100 Subject: [PATCH] Move unaffected code outside of try/catch statement --- src/Auth.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Auth.php b/src/Auth.php index ed33c9a..8bdd4cc 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -1168,17 +1168,17 @@ final class Auth extends UserManager { \time() ] ); - - if (!empty($requests)) { - return $requests; - } - else { - return 0; - } } catch (Error $e) { throw new DatabaseError($e->getMessage()); } + + if (!empty($requests)) { + return $requests; + } + else { + return 0; + } } /**