HpToolsLauncher/ParallelRunner/ParallelRunnerEnvironmentUtil.cs
Consider simplifying this complex logical expression. Open
Open
if (mc.HostAddress.IsNullOrEmpty() ||
(mc.MobileAuthType == AuthType.UsernamePassword && mc.UserName.IsNullOrEmpty() && mc.Password.IsNullOrEmpty()) ||
(mc.MobileAuthType == AuthType.AuthToken && mc.ExecToken.IsNullOrEmpty()) ||
string.IsNullOrEmpty(mc.HostPort))
return null;
Avoid too many return
statements within this method. Open
Open
return EnvironmentType.MOBILE;