Skip to content

Commit

Permalink
code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Sep 25, 2024
1 parent e8f2ee8 commit edc03e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/DomainController.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ public function destroy(Domain $domain)

// Has measures ?
if (DB::table('measures')
->where('domain_id', $domain->id)
->exists()) {
->where('domain_id', $domain->id)
->exists()) {
return back()
->withErrors(['msg' => 'There are controls associated with this framework !'])
->withInput();
}
}

$domain->delete();

Expand Down

0 comments on commit edc03e7

Please sign in to comment.