fix: use Enum.empty? instead of != [] to fix type warning
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:
Moritz 2026-01-06 21:35:59 +01:00
parent 19a20635a7
commit 4bd08e85bb

View file

@ -74,7 +74,7 @@ defmodule Mv.Authorization.PermissionSetsTest do
for set <- [:own_data, :read_only, :normal_user, :admin] do for set <- [:own_data, :read_only, :normal_user, :admin] do
permissions = PermissionSets.get_permissions(set) permissions = PermissionSets.get_permissions(set)
assert permissions.pages != [], assert not Enum.empty?(permissions.pages),
"Permission set #{set} should have at least one page" "Permission set #{set} should have at least one page"
end end
end end