Permalink
Browse files

case head variables no longer leak out

  • Loading branch information...
1 parent 3f9d72a commit d11bb78f2646de832930eb2c5cc36ae16a78ec5a Yurii Rashkovskii committed Jan 15, 2014
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/backend/io.ex
View
@@ -8,12 +8,7 @@ defmodule ExLogger.Backend.IO do
if is_binary(file) do
file = File.open!(file, [:write])
end
- case options[:ansi] do
- nil ->
- ansi = is_atom(file) and IO.ANSI.terminal?
- ansi ->
- :ok
- end
+ ansi = options[:ansi] || is_atom(file) and IO.ANSI.terminal?
{:ok, backend_state(file: file, ansi: ansi)}
end

0 comments on commit d11bb78

Please sign in to comment.