Fix over-parenthesizing of function expressions

This commit is contained in:
Amjad Masad
2015-12-24 14:55:51 -08:00
parent 15760dfed2
commit 0d8e5a9e86
78 changed files with 213 additions and 187 deletions

View File

@@ -1,5 +1,5 @@
import { coroutine as _coroutine } from "bluebird";
var foo = (function () {
var foo = function () {
var ref = _coroutine(function* () {
var wat = yield bar();
});
@@ -7,4 +7,4 @@ var foo = (function () {
return function foo() {
return ref.apply(this, arguments);
};
})();
}();

View File

@@ -1,5 +1,5 @@
import { coroutine as _coroutine } from "bluebird";
var foo = (function () {
var foo = function () {
var ref = _coroutine(function* () {
console.log(bar);
});
@@ -7,4 +7,4 @@ var foo = (function () {
return function bar() {
return ref.apply(this, arguments);
};
})();
}();

View File

@@ -1,6 +1,6 @@
import { coroutine as _coroutine } from "bluebird";
let foo = (function () {
let foo = function () {
var ref = _coroutine(function* () {
var wat = yield bar();
});
@@ -8,4 +8,4 @@ let foo = (function () {
return function foo() {
return ref.apply(this, arguments);
};
})();
}();