Skip to content

Commit 6a18439

Browse files
author
Aleksei Matiushkin
committed
Apply suggestion by @Eiji7 to explicitly rule out nil
1 parent 234525c commit 6a18439

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/scenic/scene.ex

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

0 commit comments

Comments
 (0)