Skip to content

Commit

Permalink
fix(MusicCommand): Fix return type in when closure
Browse files Browse the repository at this point in the history
- Changed the return type in the when closure from int to null
  • Loading branch information
guanguans committed Jul 8, 2024
1 parent 0fab716 commit 126ece0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Commands/MusicCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function () use ($keyword, &$duration): Collection {
$this->option('dir'),
resource_path('notify-icon.png')
)))
->when(!$this->option('no-continue'), fn (): int => $this->handle());
->when(!$this->option('no-continue'), fn (): null => $this->handle());
}

/**
Expand Down

0 comments on commit 126ece0

Please sign in to comment.