Skip to content

Commit 4b9f995

Browse files
committed
Merge pull request #377 from stof/patch-1
Remove useless condition
2 parents 5211e23 + 3afa2a4 commit 4b9f995

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Geocoder/ProviderAggregator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ public function getLimit()
100100
*/
101101
public function registerProvider(Provider $provider)
102102
{
103-
if (null !== $provider) {
104-
$this->providers[$provider->getName()] = $provider;
105-
}
103+
$this->providers[$provider->getName()] = $provider;
106104

107105
return $this;
108106
}

0 commit comments

Comments
 (0)