From e0c5ea8a625fa21a0b9ee5e862865114ef75f3ba Mon Sep 17 00:00:00 2001 From: jtejido Date: Sat, 28 Apr 2018 20:35:04 +0800 Subject: [PATCH] cleanup --- src/Geodesy/Distance/BaseDistance.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Geodesy/Distance/BaseDistance.php b/src/Geodesy/Distance/BaseDistance.php index e8b89e3..1b5ca02 100644 --- a/src/Geodesy/Distance/BaseDistance.php +++ b/src/Geodesy/Distance/BaseDistance.php @@ -38,10 +38,6 @@ public function __construct(LatLong $source, LatLong $destination) throw new \Exception('Source or Destination cannot be null'); } - if ($this->source === null || $this->destination === null) { - throw new \Exception('Source or Destination cannot be null'); - } - $this->lat1 = deg2rad($this->source->getLatitude()); $this->long1 = deg2rad($this->source->getLongitude()); $this->sourceDatum = $this->source->getReference();