remove duplicate method calls

This commit is contained in:
Nabeel Shahzad
2018-01-01 15:04:32 -06:00
parent b456dc1a71
commit d1c626afe8
4 changed files with 25 additions and 65 deletions

View File

@@ -183,8 +183,7 @@ class PirepController extends BaseController
$orig_route = $pirep->route;
$pirep = $this->pirepRepo->update($attrs, $id);
// A route change in the PIREP, so update the saved points
// in the ACARS table
// A route change in the PIREP, so update the saved points in the ACARS table
if($pirep->route !== $orig_route) {
$this->pirepSvc->saveRoute($pirep);
}