Remove leftover arrowParensAlways option (#171)
This commit is contained in:
1 parent
0b70a0f2a3
commit
31a07feb84
1 file changed
+5
-5
+5
-5
@@ -327,11 +327,11 @@ function genericPrintNoParens(path, options, print) {
|
||||
}
|
||||
|
||||
if (
|
||||
!options.arrowParensAlways && n.params.length === 1 && !n.rest &&
|
||||
n.params[0].type === "Identifier" &&
|
||||
!n.params[0].typeAnnotation &&
|
||||
!n.predicate &&
|
||||
!n.returnType
|
||||
n.params.length === 1 && !n.rest &&
|
||||
n.params[0].type === "Identifier" &&
|
||||
!n.params[0].typeAnnotation &&
|
||||
!n.predicate &&
|
||||
!n.returnType
|
||||
) {
|
||||
parts.push(path.call(print, "params", 0));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user