Remove unnecessary parentheses around if conditions
Pet peeve...
This commit is contained in:
@@ -4,8 +4,8 @@ args: with args; {
|
||||
|| x ? meta && x.meta ? sourceWithTags );
|
||||
# hack because passthru doesn't work the way I'd expect. Don't have time to spend on this right now
|
||||
# that's why I'm abusing meta for the same purpose in ghcsAndLibs
|
||||
sourceWithTagsFromDerivation = x : if (x ? passthru && x.passthru ? sourceWithTags ) then x.passthru.sourceWithTags
|
||||
else if (x ? meta && x.meta ? sourceWithTags ) then x.meta.sourceWithTags
|
||||
sourceWithTagsFromDerivation = x : if x ? passthru && x.passthru ? sourceWithTags then x.passthru.sourceWithTags
|
||||
else if x ? meta && x.meta ? sourceWithTags then x.meta.sourceWithTags
|
||||
else null;
|
||||
|
||||
# createTagFiles = [ { name = "my_tag_name_without_suffix", tagCmd = "ctags -R . -o \$TAG_FILE"; } ]
|
||||
|
||||
Reference in New Issue
Block a user