Skip to content

Commit daf6d63

Browse files
committed
Fix unreachable clause warning in notifications.ex
Remove duplicate error clause that was causing compilation to fail with --warnings-as-errors. The clause at line 903 was unreachable because line 886 already matches all non-Postgrex errors.
1 parent bf55eca commit daf6d63

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

lib/singularity_workflow/notifications.ex

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -899,14 +899,6 @@ defmodule Singularity.Workflow.Notifications do
899899

900900
{:error, error}
901901
end
902-
903-
error ->
904-
Logger.error("Notifications: Unexpected error sending message",
905-
queue: queue_name,
906-
error: Exception.format(:error, error, __STACKTRACE__),
907-
attempt: attempts + 1
908-
)
909-
{:error, {:unexpected_error, Exception.message(error)}}
910902
catch
911903
kind, reason ->
912904
Logger.error("Notifications: Unexpected exception sending message",

0 commit comments

Comments
 (0)