Skip to content

Commit b3446d7

Browse files
committed
fix: resolve quality gate failures
1 parent a6b9e45 commit b3446d7

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

mix.exs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ defmodule AshJido.MixProject do
2828
test_coverage: [
2929
tool: ExCoveralls,
3030
summary: [threshold: 90]
31+
],
32+
33+
# Dialyzer
34+
dialyzer: [
35+
plt_add_apps: [:mix]
3136
]
3237
]
3338
end

test/support/test_protected_resource.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ defmodule AshJido.Test.ProtectedResource do
3030

3131
policies do
3232
policy action_type(:create) do
33-
authorize_if actor_present()
33+
authorize_if(actor_present())
3434
end
3535

3636
policy action_type(:read) do
37-
authorize_if always()
37+
authorize_if(always())
3838
end
3939

4040
policy action_type(:destroy) do
41-
authorize_if actor_present()
41+
authorize_if(actor_present())
4242
end
4343
end
4444

0 commit comments

Comments
 (0)