Skip to content

Commit 8713531

Browse files
committed
lint index file
Signed-off-by: Winner95 <Winner95@users.noreply.github.com>
1 parent 1f5edce commit 8713531

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,13 @@ function checkForProptypes(path, paramTypeName) {
4848

4949
function setParamsTypeDefinitionFromFunctionType(documentation, path) {
5050
if (
51-
path.parentPath.node.init &&
51+
path.parentPath.node.init &&
5252
Array.isArray(path.parentPath.node.init.params) &&
5353
path.parentPath.node.init.params.length === 0
54-
)
55-
{
54+
) {
5655
return;
57-
}
58-
56+
}
57+
5958
if (
6059
path.node.type === 'ArrowFunctionExpression' &&
6160
(

0 commit comments

Comments
 (0)