1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-17 15:27:43 +01:00

dont need to check target type of bool?

This commit is contained in:
Kyle Spearrin 2019-04-29 10:00:59 -04:00
parent a75295662c
commit b7d87486a8

View File

@ -9,10 +9,6 @@ namespace Bit.App.Utilities
System.Globalization.CultureInfo culture) System.Globalization.CultureInfo culture)
{ {
if(targetType == typeof(bool)) if(targetType == typeof(bool))
{
return !(bool)value;
}
if(targetType == typeof(bool?))
{ {
return !((bool?)value).GetValueOrDefault(); return !((bool?)value).GetValueOrDefault();
} }