Closed GoodForOneFare closed 8 years ago
Note that decaf also generates similar non-returning alternates that may be cleaned up as part of this transform (or raise a separate issue if another transform is a better idea):
_doRequest() {
let ref;
if ((ref = this.operation) != null) {
ref.abort();
} else { // DELETE THIS ELSE.
void 0;
}
this.operation = $.ajax({
url: this.url,
});
}
I don't understand when CoffeeScript/ decaf decides to process things into conditional blocks versus ternaries :( I think these are probably separate transforms, but we can leave it as a single issue.
The decaf process generates 54 functions that end with a pointless
else
block:These should be removed.