Skip to content

Commit

Permalink
no need for binary pattern matching
Browse files Browse the repository at this point in the history
  • Loading branch information
mruoss committed May 14, 2023
1 parent 51ab01d commit e54a8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/k8s/client/mint/request.ex
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ defmodule K8s.Client.Mint.Request do
def map_frame({:binary, <<1, msg::binary>>}), do: {:stdout, msg}
def map_frame({:binary, <<2, msg::binary>>}), do: {:stderr, msg}
def map_frame({:binary, <<3, msg::binary>>}), do: {:error, msg}
def map_frame({:binary, <<msg::binary>>}), do: {:stdout, msg}
def map_frame({:binary, msg}), do: {:stdout, msg}

@spec map_outgoing_frame({:stdin, binary()} | {:close, integer(), binary()} | :close | :exit) ::
{:ok, :close | {:text, binary} | {:close, integer(), binary()}}
Expand Down

0 comments on commit e54a8fa

Please sign in to comment.