Skip to content

Commit 01223a3

Browse files
CopilotTyrrrz
andauthored
Align naming and member order with sibling repo conventions (#58)
Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 2e305a4 commit 01223a3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

DotnetRuntimeBootstrapper.AppHost.Core/TargetAssembly.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static TargetAssembly Resolve(string filePath)
7272
try
7373
{
7474
var name =
75-
FileVersionInfo.GetVersionInfo(filePath).ProductName?.NullIfEmptyOrWhiteSpace()
75+
FileVersionInfo.GetVersionInfo(filePath).ProductName?.NullIfWhiteSpace()
7676
?? Path.GetFileNameWithoutExtension(filePath);
7777

7878
return new TargetAssembly(filePath, name);

DotnetRuntimeBootstrapper.AppHost.Core/Utils/Disposable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace DotnetRuntimeBootstrapper.AppHost.Core.Utils;
44

55
internal class Disposable(Action dispose) : IDisposable
66
{
7-
public void Dispose() => dispose();
8-
97
public static IDisposable Create(Action dispose) => new Disposable(dispose);
8+
9+
public void Dispose() => dispose();
1010
}

DotnetRuntimeBootstrapper.AppHost.Core/Utils/Extensions/StringExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ internal static class StringExtensions
44
{
55
extension(string str)
66
{
7-
public string? NullIfEmptyOrWhiteSpace() => !string.IsNullOrWhiteSpace(str) ? str : null;
7+
public string? NullIfWhiteSpace() => !string.IsNullOrWhiteSpace(str) ? str : null;
88
}
99
}

DotnetRuntimeBootstrapper.AppHost.Core/Utils/Url.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ public static string ReplaceProtocol(string url, string protocol)
1919
}
2020

2121
public static string? TryExtractFileName(string url) =>
22-
Regex.Match(url, @".+/([^?]*)").Groups[1].Value.NullIfEmptyOrWhiteSpace();
22+
Regex.Match(url, @".+/([^?]*)").Groups[1].Value.NullIfWhiteSpace();
2323
}

0 commit comments

Comments
 (0)