Skip to content

Commit 91da849

Browse files
committed
Discard script submission result
1 parent 966674d commit 91da849

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Dotnet.Script.Core/ScriptRunner.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ public async Task<TReturn> Execute<TReturn>(string dllPath, IEnumerable<string>
4747
submissionStates[0] = globals;
4848

4949
var resultTask = method.Invoke(null, new[] { submissionStates }) as Task<TReturn>;
50-
TReturn returnValue;
5150
try
5251
{
53-
returnValue = await resultTask;
52+
_ = await resultTask;
5453
}
5554
catch (System.Exception ex)
5655
{

0 commit comments

Comments
 (0)