minor change
This commit is contained in:
parent
b927f17ce3
commit
eb7bddd5e8
|
|
@ -93,7 +93,7 @@ public class SideCarAttribute : AsyncMoAttribute
|
|||
await task;
|
||||
if (method.ReturnType.IsGenericType && method.ReturnType.GetGenericTypeDefinition() == typeof(Task<>))
|
||||
{
|
||||
value = task?.GetType().GetProperty("Result")?.GetValue(task);
|
||||
value = task?.GetType()?.GetProperty("Result")?.GetValue(task);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue