Skip to content

Commit

Permalink
Fix wrong logic in platform check
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanhp committed Aug 8, 2022
1 parent 44669eb commit f1fc020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LabXml/Telemetry/LabTelemetry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private LabTelemetry()
TelemetryEnabled = GetEnvironmentVariableAsBool(_telemetryOptInVar, false);

// Initialize EventLog
if (Environment.OSVersion.Platform == (PlatformID.Unix | PlatformID.MacOSX)) return;
if (Environment.OSVersion.Platform == PlatformID.Unix || Environment.OSVersion.Platform == PlatformID.MacOSX) return;
if (!EventLog.SourceExists("AutomatedLab")) EventLog.CreateEventSource("AutomatedLab", "Application");
}

Expand Down

0 comments on commit f1fc020

Please sign in to comment.