Avoid null checking.
authorPiotr Czaja <p.czaja@samsung.com>
Wed, 15 Nov 2023 07:34:13 +0000 (08:34 +0100)
committerPiotr Czaja/Tizen Services & IoT (PLT) /SRPOL/Engineer/Samsung Electronics <p.czaja@samsung.com>
Wed, 15 Nov 2023 08:20:56 +0000 (09:20 +0100)
Change-Id: Ieb10f52837050daee89a5bd1d8483f348173e2e4

SettingCore/MainMenuInfo.cs

index 96cf4350d5627c070aad4a02ef76abb991f57ddd..972fff0e84a33af99e049216170f44f0c5109c75 100644 (file)
@@ -213,7 +213,7 @@ namespace SettingCore
                 return null;
             }
             bool IsLightTheme = ThemeManager.PlatformThemeId == "org.tizen.default-light-theme";
-            string iconColor = iconColorHex is null ? null : IsLightTheme ? themeColors[0] : themeColors[1];
+            string iconColor = IsLightTheme ? themeColors[0] : themeColors[1];
             return iconColor;
         }