Skip to content

Commit

Permalink
lib.collectModules: improve readability by replacing implication
Browse files Browse the repository at this point in the history
  • Loading branch information
hsjobeki committed Dec 31, 2024
1 parent 0541d0e commit e51cc8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ let
if class != null
then
m:
if m._class != null -> m._class == class
if m._class == null || m._class == class
then m
else
throw "The module ${m._file or m.key} was imported into ${class} instead of ${m._class}."
Expand Down

0 comments on commit e51cc8a

Please sign in to comment.