1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

for whatever reason, don't need to force else-bodies to compile as statements anymore ... let them do what they want

This commit is contained in:
Jeremy Ashkenas 2009-12-22 12:18:27 -05:00
parent e916d4648d
commit 6555473788
6 changed files with 24 additions and 12 deletions

View file

@ -3,7 +3,11 @@
if (student.excellent_work) {
return "A+";
} else if (student.okay_stuff) {
return "B";
return if (student.tried_hard) {
return "B";
} else {
return "B-";
};
} else {
return "C";
}