Skip to content

Commit 234525c

Browse files
author
Aleksei Matiushkin
committed
Fixed a non-critical bug with is_atom(kw[:foo]) == true
1 parent 092089d commit 234525c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scenic/scene.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ defmodule Scenic.Scene do
665665
@doc false
666666
def child_spec({args, opts}) when is_list(opts) do
667667
opts =
668-
case unquote(using_opts)[:name] do
668+
case Keyword.get(unquote(using_opts), :name, "unset") do
669669
mod when is_atom(mod) -> Keyword.put_new(opts, :name, mod)
670670
_ -> opts
671671
end

0 commit comments

Comments
 (0)