Skip to content

Commit 54ef156

Browse files
committed
fix: a little better readable code
Signed-off-by: Liran Tal <liran.tal@gmail.com>
1 parent 29cf568 commit 54ef156

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/api-docs-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ export class ApiDocsService {
7878
// Remove entries without Class or Method
7979
const originalCount = apiDocs.modules?.length
8080
apiDocs.modules = apiDocs.modules.filter(module =>
81-
module?.classes?.length && module.classes.length > 0 ||
82-
module?.methods?.length && module.methods.length > 0
81+
(module?.classes?.length && module.classes.length > 0) ||
82+
(module?.methods?.length && module.methods.length > 0)
8383
)
8484
this.logger.info({ msg: `Modules count: ${originalCount}` })
8585

0 commit comments

Comments
 (0)