Skip to content

Commit 80bf60e

Browse files
committed
去掉await
1 parent 013af18 commit 80bf60e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebApiClientCore/Attributes/ActionAttributes/FormFieldAttribute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public FormFieldAttribute(string name, object? value)
3636
/// </summary>
3737
/// <param name="context">上下文</param>
3838
/// <returns></returns>
39-
public override async Task OnRequestAsync(ApiRequestContext context)
39+
public override Task OnRequestAsync(ApiRequestContext context)
4040
{
41-
await context.HttpContext.RequestMessage.AddFormFieldAsync(this.name, this.value).ConfigureAwait(false);
41+
return context.HttpContext.RequestMessage.AddFormFieldAsync(this.name, this.value);
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)