Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit fa964f4

Browse files
committed
Removed unnecessary variable
1 parent d41c4a4 commit fa964f4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Commands/Console/Import.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,20 +230,18 @@ public function getUsers() : array
230230
*/
231231
protected function save(User $user, Model $model) : bool
232232
{
233-
$imported = false;
234-
235233
if ($model->save() && $model->wasRecentlyCreated) {
236-
$imported = true;
237-
238234
Event::dispatch(new Imported($user, $model));
239235

240236
// Log the successful import.
241237
if ($this->isLogging()) {
242238
logger()->info("Imported user {$user->getCommonName()}");
243239
}
240+
241+
return true;
244242
}
245243

246-
return $imported;
244+
return false;
247245
}
248246

249247
/**

0 commit comments

Comments
 (0)