Skip to content

Commit

Permalink
Fix #167 -> return value enhanced (#215)
Browse files Browse the repository at this point in the history
Co-authored-by: Nahuel Palumbo <[email protected]>
  • Loading branch information
fdodino and PalumboN authored Feb 28, 2024
1 parent dab54dd commit b5dc198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export const shouldImplementAllMethodsInHierarchy = error<Class | Singleton>(nod
, sourceMapForNodeNameOrFullNode)

export const getterMethodShouldReturnAValue = warning<Method>(node =>
!isGetter(node) || node.isSynthetic || node.isNative() || node.isAbstract() || node.sentences.some(_ => _.is(Return))
!isGetter(node) || node.isSynthetic || node.isNative() || node.isAbstract() || node.sentences.some(returnsAValue)
, undefined,
sourceMapForBody)

Expand Down

0 comments on commit b5dc198

Please sign in to comment.