Skip to content

Commit dc25075

Browse files
Copilotjkotas
andcommitted
Remove SetLastError from IsATty as errors are not checked
Co-authored-by: jkotas <[email protected]>
1 parent afa0616 commit dc25075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/Common/src/Interop/Unix/System.Native/Interop.IsATty.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal static partial class Interop
88
{
99
internal static partial class Sys
1010
{
11-
[LibraryImport(Libraries.SystemNative, EntryPoint = "SystemNative_IsATty", SetLastError = true)]
11+
[LibraryImport(Libraries.SystemNative, EntryPoint = "SystemNative_IsATty")]
1212
[return: MarshalAs(UnmanagedType.Bool)]
1313
internal static partial bool IsATty(IntPtr fd);
1414
}

0 commit comments

Comments
 (0)