Skip to content

Commit 45ead93

Browse files
committed
Remove a redundant case
1 parent 7310a4f commit 45ead93

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

_posts/2012-04-21-hello-macros.markdown

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,7 @@ The `[root: "assets"]` Keyword is what ends up in the `_opts` argument of our `_
165165

166166
# In module Feb
167167
defmacro __using__(module, opts) do
168-
root_val = case Keyword.get(opts, :root) do
169-
match: nil
170-
"."
171-
match: other
172-
other
173-
end
168+
root_val = case Keyword.get(opts, :root, ".")
174169

175170
quote do
176171
import Feb, only: [get: 2, post: 2]

0 commit comments

Comments
 (0)