Skip to content

Commit

Permalink
Fixed: Resolved compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Aug 23, 2022
1 parent 587e6e3 commit 66ac5e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,16 @@ public void Validate()
}

// Autoimplemented by R#.

/// <summary/>
public bool Equals(ReleaseMetadataVerificationInfo? other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return string.Equals(FolderPath, other.FolderPath, StringComparison.OrdinalIgnoreCase);
}

/// <inheritdoc/>
public override bool Equals(object? obj)
{
if (ReferenceEquals(null, obj)) return false;
Expand All @@ -121,6 +124,7 @@ public override bool Equals(object? obj)
return Equals((ReleaseMetadataVerificationInfo)obj);
}

/// <inheritdoc/>
public override int GetHashCode() => StringComparer.OrdinalIgnoreCase.GetHashCode(FolderPath);
}

Expand Down
2 changes: 1 addition & 1 deletion Sewer56.Update/Sewer56.Update/Hooks/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ internal static ProcessStartInfo GetProcessStartInfo(string executablePath, stri

var startInfo = new ProcessStartInfo
{
WorkingDirectory = Path.GetDirectoryName(targetExecutablePath)
WorkingDirectory = Path.GetDirectoryName(targetExecutablePath)!
};

// If updatee is an .exe file - start it directly
Expand Down

0 comments on commit 66ac5e4

Please sign in to comment.