Skip to content

Commit 0e66efe

Browse files
author
Andy Hanson
committed
Remove unnecessary check
1 parent 22919d5 commit 0e66efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/refactors/generateGetAccessorAndSetAccessor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ namespace ts.refactor.generateGetAccessorAndSetAccessor {
102102
}
103103

104104
function getPropertyDeclarationInfo(propertyDeclaration: PropertyDeclaration): DeclarationInfo | undefined {
105-
if (!isClassLike(propertyDeclaration.parent) || !propertyDeclaration.parent.members) return undefined;
105+
if (!isClassLike(propertyDeclaration.parent)) return undefined;
106106

107107
return {
108108
isStatic: hasStaticModifier(propertyDeclaration),

0 commit comments

Comments
 (0)