replaced string.equals()
with ==
for consistency
This commit is contained in:
parent
22f6365f60
commit
ca52c39da3
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ namespace RatAttack
|
|||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
RatAttack.Ratsignal ratsignal = new RatAttack.Ratsignal(args[0], args.Length > 1 && args[1].Equals("true"));
|
||||
RatAttack.Ratsignal ratsignal = new RatAttack.Ratsignal(args[0], args.Length > 1 && args[1] == "true");
|
||||
|
||||
using (NamedPipeClientStream pipeClient = new NamedPipeClientStream(".", "RatAttack", PipeDirection.Out))
|
||||
{
|
||||
|
|
|
@ -91,11 +91,11 @@ namespace RatAttack
|
|||
bool permitLocked = match.Groups["permit"].Success;
|
||||
string permitName = match.Groups["permitName"].Value ?? "";
|
||||
string platform = match.Groups["platform"].Value;
|
||||
bool codeRed = match.Groups["oxygen"].Value.Equals("NOT OK");
|
||||
bool codeRed = match.Groups["oxygen"].Value == "NOT OK";
|
||||
|
||||
int number = int.Parse(match.Groups["number"].Value);
|
||||
|
||||
Log.Debug($"New rat case: CMDR “{cmdr}” in “{system}” on {platform}, permit locked: {permitLocked}{(permitLocked && !permitName.Equals("") ? $" (permit name: {permitName})" : "")}, code red: {codeRed} (#{number}).");
|
||||
Log.Debug($"New rat case: CMDR “{cmdr}” in “{system}” on {platform}, permit locked: {permitLocked}{(permitLocked && !(permitName == "") ? $" (permit name: {permitName})" : "")}, code red: {codeRed} (#{number}).");
|
||||
|
||||
CaseList[number] = new RatCase(cmdr, system, permitLocked, permitName, platform, codeRed, number);
|
||||
|
||||
|
|
Loading…
Reference in a new issue