Skip to content

Commit

Permalink
Add a missing return statement (#27)
Browse files Browse the repository at this point in the history
This is now necessary since a return type hint was added.
  • Loading branch information
mpdude authored May 6, 2022
1 parent 4e905d1 commit 5fe94e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Tree/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ public function lookup($provided): ?Node
}
}

if (null !== $bestId) {
return $this->objects[$this->idToHash[$bestId]];
if (null === $bestId) {
return null;
}

return $this->objects[$this->idToHash[$bestId]];
}
}

0 comments on commit 5fe94e5

Please sign in to comment.