Skip to content

Commit

Permalink
Remove unnecessary raise
Browse files Browse the repository at this point in the history
  • Loading branch information
FelonEkonom committed Jan 14, 2025
1 parent f946fdc commit 45acb1d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions guides/timer.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ defmodule MyComplexSource
{actions, %{state | status: :resumed}}
end

@impl true
def handle_parent_notification(notification, ctx, _state) when ctx.playback == :stopped do
raise "Cannot handle parent notification: #{inspect(notification)} before handle_playing"
end

@impl true
def handle_parent_notification(notification, _ctx, state) when notification in [:pause, :resume, :stop] do
case notification do
Expand Down

0 comments on commit 45acb1d

Please sign in to comment.