mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Minor tweaks to log file names
This commit is contained in:
parent
d49496b1ff
commit
851a0df6b8
4 changed files with 16 additions and 14 deletions
|
|
@ -36,14 +36,14 @@ namespace ServerManagerTool.Lib
|
|||
public bool Equals(BranchSnapshot x, BranchSnapshot y)
|
||||
{
|
||||
//Check whether the compared objects reference the same data.
|
||||
if (Object.ReferenceEquals(x, y)) return true;
|
||||
if (ReferenceEquals(x, y)) return true;
|
||||
|
||||
//Check whether any of the compared objects is null.
|
||||
if (x is null || y is null)
|
||||
return false;
|
||||
|
||||
//Check whether the snapshot' properties are equal.
|
||||
return x.BranchName == y.BranchName;
|
||||
return string.Equals(x.BranchName ?? string.Empty, y.BranchName ?? string.Empty, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
public int GetHashCode(BranchSnapshot snapshot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue