Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 70dace6

Browse files
committed
fix: remove unused variable
1 parent 6fb281d commit 70dace6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/typings.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ function createPropTypeTypings(interf: dom.InterfaceDeclaration, ast: AstQuery,
134134
typeDecl.optional ? dom.DeclarationFlags.Optional : 0);
135135
if (propertyAst.leadingComments && propertyAst.leadingComments[0].type === 'CommentBlock') {
136136
const trimLines = (): (line: string) => boolean => {
137-
let characterFound = false;
138-
return (line: string) => (characterFound = Boolean(line)) && Boolean(line);
137+
return (line: string) => Boolean(line);
139138
};
140139
property.jsDocComment = (propertyAst.leadingComments[0].value as string)
141140
.split('\n')

0 commit comments

Comments
 (0)