Fix Runner.Worker build warnings (#174)

Most of these warnings show up on only certain build OSes because of #ifdefs in the code. The fix is to suppress these warnings.
This commit is contained in:
Eilon Lipton
2019-11-06 05:47:56 -08:00
committed by Thomas Boop
parent 19580bdaf8
commit bcac4557a0
4 changed files with 10 additions and 1 deletions

View File

@@ -31,7 +31,9 @@ namespace GitHub.Runner.Worker
public sealed class DiagnosticLogManager : RunnerService, IDiagnosticLogManager
{
private static string DateTimeFormat = "yyyyMMdd-HHmmss";
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously (method has async logic on only certain platforms)
public async Task UploadDiagnosticLogsAsync(IExecutionContext executionContext,
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
IExecutionContext parentContext,
Pipelines.AgentJobRequestMessage message,
DateTime jobStartTimeUtc)