Permalink
Browse files

Updates list comprehension syntax

  • Loading branch information...
1 parent 8571c4d commit 8173a806fef44c38f684fde9f94f786f19cb5ec6 @yrashk committed Jun 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/lager.ex
View
4 lib/lager.ex
@@ -1,7 +1,7 @@
defmodule Lager do
levels = [:debug, :info, :notice, :warning, :error, :critical, :alert, :emergency]
- lc level in levels do
+ lc level inlist levels do
contents =
quote do
def unquote(level).(msg) do
@@ -18,4 +18,4 @@ defmodule Lager do
def log(level, format, args) when is_list(format), do: :lager.log(level, Process.self, format, args)
def log(level, format, args) when is_binary(format), do: log(level, binary_to_list(format), args)
-end
+end

0 comments on commit 8173a80

Please sign in to comment.