pact
pact copied to clipboard
Warnings when compiling under Elixir 1.3
==> pact
Compiling 1 file (.ex)
warning: the variable "overrides" is unsafe as it has been set inside a case/cond/receive/if/&&/||. Please explicitly return the variable value instead. For example:
case int do
1 -> atom = :one
2 -> atom = :two
end
should be written as
atom =
case int do
1 -> :one
2 -> :two
end
Unsafe variable found at:
lib/pact.ex:128
warning: the variable "module" is unsafe as it has been set inside a case/cond/receive/if/&&/||. Please explicitly return the variable value instead. For example:
case int do
1 -> atom = :one
2 -> atom = :two
end
should be written as
atom =
case int do
1 -> :one
2 -> :two
end
Unsafe variable found at:
lib/pact.ex:140
warning: variable module is unused
lib/pact.ex:52
Generated pact app