Remove unnecessary parentheses around if conditions

Pet peeve...
This commit is contained in:
Eelco Dolstra
2012-12-28 19:54:15 +01:00
parent e2d505b24e
commit 84779a6f7d
40 changed files with 130 additions and 130 deletions
+3 -3
View File
@@ -33,8 +33,8 @@ let
}
'';
archMakeFlag = if (cross != null) then "ARCH=${cross.arch}" else "";
crossMakeFlag = if (cross != null) then "CROSS=${cross.config}-" else "";
archMakeFlag = if cross != null then "ARCH=${cross.arch}" else "";
crossMakeFlag = if cross != null then "CROSS=${cross.config}-" else "";
# UCLIBC_SUSV4_LEGACY defines 'tmpnam', needed for gcc libstdc++ builds.
nixConfig = ''
@@ -74,7 +74,7 @@ stdenv.mkDerivation {
'';
# Cross stripping hurts.
dontStrip = if (cross != null) then true else false;
dontStrip = if cross != null then true else false;
makeFlags = [ crossMakeFlag "VERBOSE=1" ];