mirror of
https://github.com/actions/runner.git
synced 2025-12-11 12:57:05 +00:00
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:
committed by
Thomas Boop
parent
19580bdaf8
commit
bcac4557a0
@@ -22,7 +22,9 @@ namespace GitHub.Runner.Worker.Handlers
|
||||
{
|
||||
public ContainerActionExecutionData Data { get; set; }
|
||||
|
||||
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously (method has async logic on only certain platforms)
|
||||
public async Task RunAsync(ActionRunStage stage)
|
||||
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
|
||||
{
|
||||
// Validate args.
|
||||
Trace.Entering();
|
||||
|
||||
Reference in New Issue
Block a user