Skip to content

Commit

Permalink
Missing code smell fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKinas committed Oct 27, 2023
1 parent 92d4c40 commit 19594c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions projects/aca-shared/rules/src/app.rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ export const hasLibrarySelected = (context: RuleContext): boolean => !!context.s
* JSON ref: `app.selection.isPrivateLibrary`
*/
export function isPrivateLibrary(context: RuleContext): boolean {
const library = context.selection.library;
return library ? !!(library.entry?.visibility === 'PRIVATE') : false;
return context.selection.library?.entry?.visibility === 'PRIVATE';
}

/**
Expand Down

0 comments on commit 19594c4

Please sign in to comment.