Skip to content

Commit

Permalink
#766 Removed unnecessary ternary operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
haogatyp committed Oct 6, 2023
1 parent 111b442 commit c28ecb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/oai/models/ServerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function create($metaDataPrefix = null)

if ($options) {
if (isset($options['viewHelpers'])) {
$previousViewHelpers = $server->getViewHelpers() ?: [];
$previousViewHelpers = $server->getViewHelpers();
$viewHelpers = $options['viewHelpers'];

if (is_string($viewHelpers)) {
Expand Down

0 comments on commit c28ecb2

Please sign in to comment.