Skip to content

Commit 3aa3b19

Browse files
committed
fix: output appropriate message
1 parent ca826ff commit 3aa3b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,11 @@ private function create(?string $username = null, ?string $email = null): void
305305

306306
if ($username === null) {
307307
$userModel->allowEmptyInserts()->save($user);
308+
$this->write('New User created', 'green');
308309
} else {
309310
$userModel->save($user);
311+
$this->write('User "' . $username . '" created', 'green');
310312
}
311-
312-
$this->write('User "' . $username . '" created', 'green');
313313
}
314314

315315
/**

0 commit comments

Comments
 (0)