mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-26 21:54:16 +01:00
Refactor away useless else { } wrap.
This commit is contained in:
parent
9869bfe84d
commit
60d1e7e302
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user