Skip to content

Commit

Permalink
Fix #159 - pointing to the right issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fdodino committed Sep 11, 2023
1 parent cb907cf commit 077b473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ export const shouldImplementInheritedAbstractMethods = error<Singleton>(node =>
)

export const shouldHaveBody = error<Method>(node => {
const parent = node.parent
return !parent.is(Singleton) || node.isNative() || !node.isAbstract()
const parentModule = node.parent
return !parentModule.is(Singleton) || node.isNative() || !node.isAbstract()
})

export const shouldNotDefineGlobalMutableVariables = error<Variable>(variable => {
Expand Down

0 comments on commit 077b473

Please sign in to comment.