1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-27 06:54:16 +01:00

Refactor away useless else { } wrap.

This commit is contained in:
Jean Paul Galea 2015-07-17 23:27:43 +02:00
parent 9869bfe84d
commit 60d1e7e302

View File

@ -274,15 +274,13 @@ class SyncLib
$this->log(LOG_CRIT, 'failed to update internal DB with new counters'); $this->log(LOG_CRIT, 'failed to update internal DB with new counters');
return false; return false;
} }
else
{
if ($this->db->rowCount() > 0)
$this->log(LOG_INFO, 'updated database ', $params);
else
$this->log(LOG_INFO, 'database not updated', $params);
return true; if ($this->db->rowCount() > 0)
} $this->log(LOG_INFO, 'updated database ', $params);
else
$this->log(LOG_INFO, 'database not updated', $params);
return true;
} }
return false; return false;