Skip to content

Commit

Permalink
refactor some code
Browse files Browse the repository at this point in the history
  • Loading branch information
reziamini committed Dec 25, 2020
1 parent 4841616 commit 507065d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Commands/DeleteAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ public function handle()
if($this->askResult($user)){
UserProviderFacade::deleteAdmin($user);
$this->info('Admin was removed successfully');
} else {
$this->warn('Process was canceled');
return;
}

$this->warn('Process was canceled');
}

public function askResult($user)
Expand Down

0 comments on commit 507065d

Please sign in to comment.