Skip to content

Commit 1d06de7

Browse files
committed
normalize returns themes when it's a map.
1 parent ba40753 commit 1d06de7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/scenic/themes.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ defmodule Scenic.Themes do
261261
end
262262
end
263263

264+
def normalize(theme) when is_map(theme), do: theme
265+
264266
@spec preset({atom, atom} | map) :: map | nil
265267
@doc """
266268
Get a theme.

0 commit comments

Comments
 (0)