Skip to content

Commit

Permalink
Run the formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
intentionally-left-nil committed Jun 29, 2018
1 parent c68f945 commit 1ff56f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/cli/commands/add/validate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ defmodule Wand.CLI.Commands.Add.Validate do

defp get_flag(switches, key, struct \\ %Package{}) do
value = Keyword.get(switches, key, Map.fetch!(struct, key))

cond do
is_atom(value) -> value
Enum.member?(atom_flags(), key) -> String.to_atom(value)
Expand Down
4 changes: 1 addition & 3 deletions test/commands/add_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ defmodule AddTest do
}

command =
OptionParser.split(
"add poison --repo=nothexpm --organization=mycompany --hex=mypoison"
)
OptionParser.split("add poison --repo=nothexpm --organization=mycompany --hex=mypoison")

assert Add.validate(command) == expected
end
Expand Down

0 comments on commit 1ff56f6

Please sign in to comment.