判空写法
This commit is contained in:
parent
1b4a35326c
commit
95e4a2303b
|
|
@ -160,7 +160,7 @@ public class AdjustManager : D_MonoSingleton<AdjustManager>
|
||||||
|
|
||||||
private bool IsOrganic(string _network)
|
private bool IsOrganic(string _network)
|
||||||
{
|
{
|
||||||
if (_network.Equals("Organic") || _network.Equals("Untrusted Devices") || _network.Equals(""))
|
if (string.IsNullOrEmpty(_network) || _network.Equals("Organic") || _network.Equals("Untrusted Devices"))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue