From 45acb1d54a315c175603d278d1ba3943f83c44dd Mon Sep 17 00:00:00 2001 From: "feliks.pobiedzinski@swmansion.com" Date: Tue, 14 Jan 2025 13:04:30 +0100 Subject: [PATCH] Remove unnecessary raise --- guides/timer.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/guides/timer.md b/guides/timer.md index ed1969a3b..e1b26f8b3 100644 --- a/guides/timer.md +++ b/guides/timer.md @@ -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