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

Commit

Permalink
Revert path changes and suppress warnings instead
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Nov 19, 2021
1 parent ac32326 commit 5b100cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>2.3.1</Version>
<Version>2.3.2</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions JustArchiNET.Madness/PathMadness/Path.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ public static class Path {
[ContractAnnotation("null=>null;notnull=>notnull")]
[MadnessType(EMadnessType.Proxy)]
[Pure]
public static string? GetExtension(string? path) => System.IO.Path.GetExtension(path);
public static string GetExtension(string? path) => System.IO.Path.GetExtension(path)!;

[ContractAnnotation("null=>null;notnull=>notnull")]
[MadnessType(EMadnessType.Proxy)]
[Pure]
public static string? GetFileName(string? path) => System.IO.Path.GetFileName(path);
public static string GetFileName(string? path) => System.IO.Path.GetFileName(path)!;

[ContractAnnotation("null=>null;notnull=>notnull")]
[MadnessType(EMadnessType.Proxy)]
[Pure]
public static string? GetFileNameWithoutExtension(string? path) => System.IO.Path.GetFileNameWithoutExtension(path);
public static string GetFileNameWithoutExtension(string? path) => System.IO.Path.GetFileNameWithoutExtension(path)!;

[MadnessType(EMadnessType.Proxy)]
[Pure]
Expand Down

0 comments on commit 5b100cd

Please sign in to comment.