Skip to content

Commit 35d3c1c

Browse files
authored
treewide: remove redundant parentheses from conditionals (#2475)
Link: #2475 Reviewed-by: 0xda157 <da157@voidq.com>
1 parent 4e328a8 commit 35d3c1c

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

modules/fnott/hm.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ mkTarget {
4141
})
4242
({ polarity, icons }: {
4343
services.fnott.settings.main."icon-theme" =
44-
if (polarity == "dark") then icons.dark else icons.light;
44+
if polarity == "dark" then icons.dark else icons.light;
4545
})
4646
];
4747
}

modules/fuzzel/hm.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mkTarget {
2828
)
2929
({ polarity, icons }: {
3030
programs.fuzzel.settings.main."icon-theme" =
31-
if (polarity == "dark") then icons.dark else icons.light;
31+
if polarity == "dark" then icons.dark else icons.light;
3232
})
3333
];
3434
}

modules/nixos-icons/overlay.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# convert each to hex string
4949
(map toHexString)
5050
# add leading 0 if necessary
51-
(map (hex: if (stringLength hex < 2) then "0" + hex else hex))
51+
(map (hex: if stringLength hex < 2 then "0" + hex else hex))
5252
# to one string
5353
concatStrings
5454
];

modules/qt/hm.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ mkTarget {
133133
)
134134
({ icons, polarity }: {
135135
qt = qtctSettings {
136-
Appearance.icon_theme =
137-
if (polarity == "dark") then icons.dark else icons.light;
136+
Appearance.icon_theme = if polarity == "dark" then icons.dark else icons.light;
138137
};
139138
})
140139
({ fonts }: {

modules/regreet/nixos.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ mkTarget {
107107
({ polarity, icons }: {
108108
services.displayManager.regreet.iconTheme = {
109109
inherit (icons) package;
110-
name = if (polarity == "dark") then icons.dark else icons.light;
110+
name = if polarity == "dark" then icons.dark else icons.light;
111111
};
112112
})
113113
];

0 commit comments

Comments
 (0)