Skip to content

Commit fd3f401

Browse files
Fix warnings
1 parent 98f46da commit fd3f401

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/Spectre.IO/Environment.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ public Environment(IPlatform platform)
5959
return SystemEnv.GetEnvironmentVariable(variable);
6060
}
6161

62-
public DirectoryPath GetSpecialPath(KnownPath path)
63-
{
64-
throw new NotImplementedException();
65-
}
66-
6762
public DirectoryPath GetKnownPath(KnownPath path)
6863
{
6964
return KnownPathUtilities.GetFolderPath(Platform, path);
@@ -108,5 +103,4 @@ public DirectoryPath GetTempDirectory()
108103
var path = System.IO.Path.GetTempPath();
109104
return new DirectoryPath(path);
110105
}
111-
}
112-
106+
}

src/Spectre.IO/Internal/Native.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ internal static partial class Native
88
public static class Unix
99
{
1010
[DllImport("libc", SetLastError = true)]
11+
#pragma warning disable SA1300
1112
public static extern IntPtr getenv([MarshalAs(UnmanagedType.LPStr)] string name);
13+
#pragma warning restore SA1300
1214

1315
public static string? GetFolder(KnownPath folder)
1416
{

0 commit comments

Comments
 (0)