From 848c9871f9c7ec4130e1205a6311b23b3d2f2cf1 Mon Sep 17 00:00:00 2001 From: Ahmed Yasin Koculu Date: Sun, 24 Dec 2023 04:18:05 +0100 Subject: [PATCH] Remove dead code. --- .../AsyncHandlers/Expressions/AwaitExpressionHandler.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Topaz/AstHandlers/AsyncHandlers/Expressions/AwaitExpressionHandler.cs b/src/Topaz/AstHandlers/AsyncHandlers/Expressions/AwaitExpressionHandler.cs index af9d14e..b5b5039 100644 --- a/src/Topaz/AstHandlers/AsyncHandlers/Expressions/AwaitExpressionHandler.cs +++ b/src/Topaz/AstHandlers/AsyncHandlers/Expressions/AwaitExpressionHandler.cs @@ -33,10 +33,7 @@ internal async static ValueTask ExecuteAsync(ScriptExecutor scriptExecut if (type2.IsGenericType && typeof(ValueTask<>) == type2.GetGenericTypeDefinition()) { dynamic awaitable = result; - if (result.GetType().IsGenericType) - return await awaitable; - await awaitable; - return null; + return await awaitable; } return result; }