Skip to content

Commit 9b5c547

Browse files
committed
Removed assertion about country code
1 parent 2b424a7 commit 9b5c547

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Checker/StreetEligibilityChecker.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
use Sylius\Component\Addressing\Model\AddressInterface;
88
use VIISON\AddressSplitter\AddressSplitter;
99
use VIISON\AddressSplitter\Exceptions\SplittingException;
10-
use Webmozart\Assert\Assert;
1110

1211
class StreetEligibilityChecker implements StreetEligibilityCheckerInterface
1312
{
1413
public function isEligible(AddressInterface $address): bool
1514
{
1615
$countryCode = $address->getCountryCode();
17-
Assert::notNull($countryCode);
16+
if (null === $countryCode) {
17+
return false;
18+
}
1819

1920
$street = $address->getStreet();
2021
if (null === $street) {

0 commit comments

Comments
 (0)