Skip to content

Commit

Permalink
Remove null checks of non-null values (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
offa authored Sep 22, 2022
1 parent b9d5844 commit e14e88a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public String getHeaderHtml() {
ThemeManagerPageDecorator themeManagerPageDecorator = ThemeManagerPageDecorator.get();
Theme theme = themeManagerPageDecorator.findTheme();

if (theme != null && theme.isBlueOceanCompatible()) {
if (theme.isBlueOceanCompatible()) {
return themeManagerPageDecorator.getHeaderHtml();
}
return null;
Expand All @@ -23,7 +23,7 @@ public String getThemeKey() {
ThemeManagerPageDecorator themeManagerPageDecorator = ThemeManagerPageDecorator.get();
Theme theme = themeManagerPageDecorator.findTheme();

if (theme != null && theme.isBlueOceanCompatible()) {
if (theme.isBlueOceanCompatible()) {
return themeManagerPageDecorator.getThemeKey();
}
return null;
Expand Down

0 comments on commit e14e88a

Please sign in to comment.