Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wasnotrice committed Sep 18, 2018
1 parent 35a728c commit 35e9665
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
19 changes: 8 additions & 11 deletions lib/toggle.ex
Original file line number Diff line number Diff line change
Expand Up @@ -204,17 +204,14 @@ defmodule Scenic.Component.Toggle do
{:noreply, state}
end

defp update_graph(
%{
color: color,
contained?: contained?,
graph: graph,
on?: on?,
pressed?: pressed?,
theme: theme,
thumb_translate: thumb_translate
} = state
) do
defp update_graph(%{
color: color,
contained?: contained?,
graph: graph,
on?: on?,
pressed?: pressed?,
thumb_translate: thumb_translate
}) do
graph =
case pressed? && contained? do
true ->
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule ScenicToggle.MixProject do
docs: [
main: "Scenic.Toggle.Components"
],
description: description,
description: description(),
name: "Scenic Toggle",
source_ref: "v#{@version}",
source_url: @github,
Expand Down

0 comments on commit 35e9665

Please sign in to comment.