Skip to content

Commit

Permalink
Directly return boolean value instead of returning it from ternary op…
Browse files Browse the repository at this point in the history
…erator
  • Loading branch information
rnbr04 authored Oct 2, 2023
1 parent f563fce commit fb77e19
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ const GenresSectionContainer: FC<GenresSectionContainerProps> = ({
centerText: true,
cardLayout: false,
shape: itemType === BaseItemKind.MusicAlbum ? 'overflowSquare' : 'overflowPortrait',
showParentTitle: itemType === BaseItemKind.MusicAlbum ? true : false,
showYear: itemType === BaseItemKind.MusicAlbum ? false : true
showParentTitle: (itemType === BaseItemKind.MusicAlbum),
showYear: !(itemType === BaseItemKind.MusicAlbum)

Check failure on line 74 in src/apps/experimental/components/library/GenresSectionContainer.tsx

View workflow job for this annotation

GitHub Actions / Run eslint

Use the opposite operator (!==) instead
}}
/>;
};
Expand Down

0 comments on commit fb77e19

Please sign in to comment.