1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-31 16:52:20 +01:00

Refactor.

- remove unnecessary else {} wrapper.
This commit is contained in:
Jean Paul Galea 2015-08-18 12:04:30 +02:00
parent b76ffc313f
commit 54dfc6edb6

View File

@ -187,17 +187,15 @@ class DbImpl extends Db
$this->closeCursor($result);
return $row;
}
else
{
$collection = array();
while($row = $this->fetchArray($result))
$collection[] = $row;
$collection = array();
$this->closeCursor($result);
while($row = $this->fetchArray($result))
$collection[] = $row;
return $collection;
}
$this->closeCursor($result);
return $collection;
}
/**