Skip to content

Commit ac26f1b

Browse files
committed
Fix another dialyzer regression
1 parent 65c0edc commit ac26f1b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/plausible.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ defmodule Plausible do
3131
unquote(term)
3232

3333
1 ->
34-
case unquote(term) do
35-
value when is_boolean(value) -> not value
36-
nil -> :something
37-
_other -> nil
38-
end
34+
not unquote(term)
3935
end
4036
end
4137
end

lib/plausible/teams/invitations.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,11 @@ defmodule Plausible.Teams.Invitations do
543543
end
544544
else
545545
def ensure_can_take_ownership(_site, _team, _opts) do
546-
always(:ok)
546+
if always(true) do
547+
:ok
548+
else
549+
{:error, :no_plan}
550+
end
547551
end
548552
end
549553

0 commit comments

Comments
 (0)