mirror of
https://github.com/bitwarden/mobile
synced 2025-12-11 13:53:29 +00:00
dont need to check target type of bool?
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user