fix style

This commit is contained in:
shibafu
2019-03-14 00:05:11 +09:00
parent be700ab81b
commit 27fc5ee6e8
5 changed files with 8 additions and 4 deletions

View File

@@ -41,11 +41,13 @@ class PromoteUser extends Command
$user = User::where('name', $this->argument('username'))->first();
if ($user === null) {
$this->error('No user with such username');
return 1;
}
if ($user->is_admin) {
$this->info('@' . $user->name . ' is already an administrator.');
return 0;
}