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:
parent
e916d4648d
commit
6555473788
6 changed files with 24 additions and 12 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue