From d90722b3b9a7e60d0a2bc8442c0826d8e3386cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no> Date: Tue, 8 Aug 2017 09:21:05 +0200 Subject: [PATCH] Remove superfluous if statement. --- modules/consent/lib/Consent/Store/Database.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/modules/consent/lib/Consent/Store/Database.php b/modules/consent/lib/Consent/Store/Database.php index 348821894..31b4e7fd8 100644 --- a/modules/consent/lib/Consent/Store/Database.php +++ b/modules/consent/lib/Consent/Store/Database.php @@ -346,13 +346,11 @@ class sspmod_consent_Consent_Store_Database extends sspmod_consent_Store $st = $db->prepare($statement); if ($st === false) { - if ($st === false) { - SimpleSAML\Logger::error( - 'consent:Database - Error preparing statement \'' . - $statement . '\': ' . self::_formatError($db->errorInfo()) - ); - return false; - } + SimpleSAML\Logger::error( + 'consent:Database - Error preparing statement \'' . + $statement . '\': ' . self::_formatError($db->errorInfo()) + ); + return false; } if ($st->execute($parameters) !== true) { -- GitLab