Removing unnecessary parens and removing the sudo recommendation for npm in the readme.

This commit is contained in:
Timothy Jones 2010-10-24 23:45:47 +13:00
parent 99deb8c670
commit f52ef98cee
2 changed files with 2 additions and 2 deletions

2
README
View File

@ -26,7 +26,7 @@
sudo bin/cake install sudo bin/cake install
Or, if you have the Node Package Manager installed: Or, if you have the Node Package Manager installed:
sudo npm install coffee-script npm install coffee-script
Compile a script: Compile a script:
coffee /path/to/script.coffee coffee /path/to/script.coffee

View File

@ -1460,7 +1460,7 @@ exports.If = class If extends Base
Push = Push =
wrap: (name, expressions) -> wrap: (name, expressions) ->
return expressions if expressions.empty() or return expressions if expressions.empty() or
(last(expressions.expressions)).containsPureStatement() last(expressions.expressions).containsPureStatement()
expressions.push new Call(new Value new Literal(name), [new Accessor new Literal 'push'] expressions.push new Call(new Value new Literal(name), [new Accessor new Literal 'push']
[expressions.pop()]) [expressions.pop()])