mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 01:52:18 +01:00
Refactor.
- remove unnecessary else {} wrapper.
This commit is contained in:
parent
b76ffc313f
commit
54dfc6edb6
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user