Skip to content

Commit a2f1013

Browse files
authored
Merge pull request #545 from atifaziz/discard
Discard script submission result (intentionally)
2 parents ead32bf + 91da849 commit a2f1013

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)