Fix over-parenthesizing of function expressions
This commit is contained in:
@@ -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);
|
||||
};
|
||||
})();
|
||||
}();
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
})();
|
||||
}();
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
})();
|
||||
}();
|
||||
|
||||
Reference in New Issue
Block a user