Skip to content

Commit

Permalink
Fix dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
FelonEkonom committed Nov 5, 2024
1 parent 711c671 commit 3e8c310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/membrane_webrtc/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Membrane.WebRTC.Utils do

alias Membrane.WebRTC.{SignalingChannel, SimpleWebSocketServer}

@spec validate_signaling!(SignalingChannel.t() | {:websocket, SimpleWebSocketServer.options()}) ::
@spec validate_signaling!(SignalingChannel.t() | {:websocket, SimpleWebSocketServer.options()} | {:whip, [{atom(), term()}]}) ::
:ok | no_return()
def validate_signaling!(%SignalingChannel{}), do: :ok

Expand All @@ -24,8 +24,8 @@ defmodule Membrane.WebRTC.Utils do

def validate_signaling!(signaling), do: do_raise(signaling)

@spec do_raise(term()) :: no_return()
defp do_raise(signaling) do
raise "BCD"
raise "Invalid signaling: #{inspect(signaling, pretty: true)}"
end
end

0 comments on commit 3e8c310

Please sign in to comment.