mirror of
https://github.com/bitwarden/mobile.git
synced 2025-01-03 18:17:47 +01:00
dont return null
This commit is contained in:
parent
4dd05cf10e
commit
e3dcf4aed1
@ -37,9 +37,9 @@ namespace Bit.Core.Services
|
|||||||
if(settings != null && settings.ContainsKey(Keys_EquivalentDomains))
|
if(settings != null && settings.ContainsKey(Keys_EquivalentDomains))
|
||||||
{
|
{
|
||||||
var jArray = (settings[Keys_EquivalentDomains] as JArray);
|
var jArray = (settings[Keys_EquivalentDomains] as JArray);
|
||||||
return jArray?.ToObject<List<List<string>>>();
|
return jArray?.ToObject<List<List<string>>>() ?? new List<List<string>>();
|
||||||
}
|
}
|
||||||
return null;
|
return new List<List<string>>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task SetEquivalentDomainsAsync(List<List<string>> equivalentDomains)
|
public Task SetEquivalentDomainsAsync(List<List<string>> equivalentDomains)
|
||||||
|
Loading…
Reference in New Issue
Block a user