fix: use Enum.empty? instead of != [] to fix type warning
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Replace comparison with empty list using Enum.empty?/1 to satisfy type checker and avoid redundant comparison warning
This commit is contained in:
parent
19a20635a7
commit
4bd08e85bb
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ defmodule Mv.Authorization.PermissionSetsTest do
|
|||
for set <- [:own_data, :read_only, :normal_user, :admin] do
|
||||
permissions = PermissionSets.get_permissions(set)
|
||||
|
||||
assert permissions.pages != [],
|
||||
assert not Enum.empty?(permissions.pages),
|
||||
"Permission set #{set} should have at least one page"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue