Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 5b100cd

Browse files
committed
Revert path changes and suppress warnings instead
1 parent ac32326 commit 5b100cd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>2.3.1</Version>
3+
<Version>2.3.2</Version>
44
</PropertyGroup>
55

66
<PropertyGroup>

JustArchiNET.Madness/PathMadness/Path.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ public static class Path {
4747
[ContractAnnotation("null=>null;notnull=>notnull")]
4848
[MadnessType(EMadnessType.Proxy)]
4949
[Pure]
50-
public static string? GetExtension(string? path) => System.IO.Path.GetExtension(path);
50+
public static string GetExtension(string? path) => System.IO.Path.GetExtension(path)!;
5151

5252
[ContractAnnotation("null=>null;notnull=>notnull")]
5353
[MadnessType(EMadnessType.Proxy)]
5454
[Pure]
55-
public static string? GetFileName(string? path) => System.IO.Path.GetFileName(path);
55+
public static string GetFileName(string? path) => System.IO.Path.GetFileName(path)!;
5656

5757
[ContractAnnotation("null=>null;notnull=>notnull")]
5858
[MadnessType(EMadnessType.Proxy)]
5959
[Pure]
60-
public static string? GetFileNameWithoutExtension(string? path) => System.IO.Path.GetFileNameWithoutExtension(path);
60+
public static string GetFileNameWithoutExtension(string? path) => System.IO.Path.GetFileNameWithoutExtension(path)!;
6161

6262
[MadnessType(EMadnessType.Proxy)]
6363
[Pure]

0 commit comments

Comments
 (0)