pact icon indicating copy to clipboard operation
pact copied to clipboard

Warnings when compiling under Elixir 1.3

Open derekprior opened this issue 9 years ago • 0 comments

==> 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

derekprior avatar Jun 24 '16 20:06 derekprior