Skip to content

Commit

Permalink
style: Cleanup unnecessary global function that is used internally
Browse files Browse the repository at this point in the history
  • Loading branch information
ktutnik committed Jan 17, 2023
1 parent ce733c1 commit 6ff3eb4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/reflect/src/parser.ts
Expand Up @@ -206,12 +206,8 @@ function parseMethods(owner: Class): MethodReflection[] {
return result
}

function isFunction(owner:Class, member:string) {
const descriptor = Object.getOwnPropertyDescriptor(owner, member)
return typeof descriptor?.value === "function"
}

function parseProperties(owner: Class): PropertyReflection[] {
const isFunction = (owner:Class, member:string) => typeof Object.getOwnPropertyDescriptor(owner, member)?.value === "function"
const result: PropertyReflection[] = []
const members = getClassMembers(owner)
for (const name of members) {
Expand Down

0 comments on commit 6ff3eb4

Please sign in to comment.