Skip to content
Prev Previous commit
Drop _isLinux
  • Loading branch information
jpnurmi committed Jul 25, 2025
commit c65f2575cb4e25be2c776bdcbd7b9e3c7d4bd021
3 changes: 1 addition & 2 deletions src/Sentry/Platforms/Native/CFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ private static void nativeTransportFree(IntPtr state)
// The logger we should forward native messages to. This is referenced by nativeLog() which in turn for.
private static IDiagnosticLogger? _logger;
private static bool _isWindows = System.OperatingSystem.IsWindows();
private static bool _isLinux = System.OperatingSystem.IsLinux();
private static bool _isArm64 = RuntimeInformation.OSArchitecture == Architecture.Arm64;

// This method is called from the C library and forwards incoming messages to the currently set _logger.
Expand Down Expand Up @@ -497,7 +496,7 @@ private static void nativeLogImpl(int cLevel, IntPtr format, IntPtr args, IntPtr
});
}
// For Linux/macOS, we must make a copy of the VaList to be able to pass it back...
else if (_isLinux && _isArm64)
else if (_isArm64)
{
message = FormatWithVaList<VaListArm64>(format, args);
}
Expand Down
Loading