Squash a warning

This commit is contained in:
Michael Klishin 2016-06-02 17:01:59 +03:00
parent 65efddef2f
commit 771e0193fe
1 changed files with 2 additions and 1 deletions

View File

@ -24,13 +24,14 @@ defmodule ClearPermissionsCommand do
def validate([], _) do
{:validation_failure, :not_enough_args}
end
def switches(), do: []
def validate([_|_] = args, _) when length(args) > 1 do
{:validation_failure, :too_many_args}
end
def validate([_], _), do: :ok
def switches(), do: []
def run([username], %{node: node_name, vhost: vhost}) do
node_name
|> Helpers.parse_node