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; }