Skip to content

Commit

Permalink
chore: Fix dialyzer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lud committed Dec 1, 2024
1 parent c915b85 commit e65e74d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 26 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/ci.yml

This file was deleted.

1 change: 1 addition & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ defmodule Mutex.Mixfile do
[
flags: [:unmatched_returns, :error_handling, :unknown, :extra_return],
list_unused_filters: true,
plt_add_apps: [:ex_unit],
plt_local_path: "_build/plts"
]
end
Expand Down
5 changes: 3 additions & 2 deletions test/support/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ defmodule Mutex.Test.Utils do
Ensures that the exception message can be generated
"""
def ensure_message(e) do
ExUnit.Assertions.refute(Exception.message(e) =~ "failed to produce a message with")
e
if Exception.message(e) =~ "failed to produce a message with" do
ExUnit.Assertions.flunk("Exception cannot produce a message: #{inspect(e)}")
end
end
end

0 comments on commit e65e74d

Please sign in to comment.