Skip to content

Commit 10a9128

Browse files
authored
Merge pull request #591 from MattSturgeon/simplify-one-line
refactor: simplify one line of nix code
2 parents d6a7faa + e8274d4 commit 10a9128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix/packages/treefmt/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ in
8080
error = "Accessing `${name}` requires a nixpkgs revision that has `treefmt.${name}`.";
8181
attr = pkgs.treefmt.${name} or (throw error);
8282
in
83-
if attr.override.__functionArgs.treefmt or null != null
83+
if attr ? override.__functionArgs.treefmt
8484
then attr.override {inherit treefmt;}
8585
else attr;
8686
in {

0 commit comments

Comments
 (0)