Skip to content

Resolve build warnings - #10

Open
theodowling wants to merge 1 commit into
bigardone:masterfrom
theodowling:master
Open

Resolve build warnings#10
theodowling wants to merge 1 commit into
bigardone:masterfrom
theodowling:master

Conversation

@theodowling

Copy link
Copy Markdown

Resolving warnings about unsafe variable when compiling

==> battleship
Compiling 20 files (.ex)
warning: the variable "game_data" 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/battleship/game.ex:95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant