diff options
author | Jeff Weiss <jeff.weiss@puppetlabs.com> | 2016-03-29 22:51:09 -0700 |
---|---|---|
committer | Jeff Weiss <jeff.weiss@puppetlabs.com> | 2016-03-29 22:51:09 -0700 |
commit | 67c0727eb10b0b50acc45c95d8f3ffe61e413526 (patch) | |
tree | 9d76f382b0eb46dc80e28858291e710a1029cfc1 | |
parent | Prefer Keyword list syntax for Map key-value pairs (diff) |
remove unneeded function
-rw-r--r-- | lib/exirc/utils.ex | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/exirc/utils.ex b/lib/exirc/utils.ex index 2293972..5f01af5 100644 --- a/lib/exirc/utils.ex +++ b/lib/exirc/utils.ex @@ -84,17 +84,13 @@ defmodule ExIrc.Utils do defp get_args([[?: | first_arg] | rest], msg) do args = (for arg <- [first_arg | rest], do: ' ' ++ trim_crlf(arg)) |> List.flatten case args do - [_ | []] -> + [_] -> get_args [], %{msg | args: [msg.args]} [_ | full_trail] -> get_args [], %{msg | args: [full_trail | msg.args]} end end - defp get_args([arg | []], msg) do - get_args [], %{msg | args: [arg | msg.args]} - end - defp get_args([arg | rest], msg) do get_args rest, %{msg | args: [arg | msg.args]} end |