Skip to content

Commit 30149a0

Browse files
committed
Suppress some false positive warnings
1 parent dcb2e74 commit 30149a0

34 files changed

+34
-34
lines changed

src/GovUk.Frontend.AspNetCore/TagHelpers/AccordionItemTagHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu
3535

3636
using (context.SetScopedContextItem(itemContext))
3737
{
38-
await output.GetChildContentAsync();
38+
_ = await output.GetChildContentAsync();
3939
}
4040

4141
itemContext.ThrowIfIncomplete();

src/GovUk.Frontend.AspNetCore/TagHelpers/AccordionTagHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu
153153

154154
using (context.SetScopedContextItem(accordionContext))
155155
{
156-
await output.GetChildContentAsync();
156+
_ = await output.GetChildContentAsync();
157157
}
158158

159159
var tagBuilder = _htmlGenerator.GenerateAccordion(

src/GovUk.Frontend.AspNetCore/TagHelpers/BreadcrumbsTagHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu
6161

6262
using (context.SetScopedContextItem(breadcrumbsContext))
6363
{
64-
await output.GetChildContentAsync();
64+
_ = await output.GetChildContentAsync();
6565
}
6666

6767
var attributes = new AttributeCollection(output.Attributes);

src/GovUk.Frontend.AspNetCore/TagHelpers/CharacterCountTagHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu
275275
using (context.SetScopedContextItem(characterCountContext))
276276
using (context.SetScopedContextItem<FormGroupContext3>(characterCountContext))
277277
{
278-
await output.GetChildContentAsync();
278+
_ = await output.GetChildContentAsync();
279279
}
280280

281281
var name = ResolveName();

src/GovUk.Frontend.AspNetCore/TagHelpers/CheckboxesFieldsetTagHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu
2626

2727
using (context.SetScopedContextItem(fieldsetContext))
2828
{
29-
await output.GetChildContentAsync();
29+
_ = await output.GetChildContentAsync();
3030
}
3131

3232
fieldsetContext.ThrowIfNotComplete();

src/GovUk.Frontend.AspNetCore/TagHelpers/CookieBannerMessageActionsTagHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu
2727
var messageContext = context.GetContextItem<CookieBannerMessageContext>();
2828
var actionsContext = context.GetContextItem<CookieBannerMessageActionsContext>();
2929

30-
await output.GetChildContentAsync();
30+
_ = await output.GetChildContentAsync();
3131

3232
if (messageContext.Actions is not null)
3333
{

src/GovUk.Frontend.AspNetCore/TagHelpers/CookieBannerMessageTagHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu
5252
var cookieBannerContext = context.GetContextItem<CookieBannerContext>();
5353
var messageContext = context.GetContextItem<CookieBannerMessageContext>();
5454

55-
await output.GetChildContentAsync();
55+
_ = await output.GetChildContentAsync();
5656

5757
var attributes = new AttributeCollection(output.Attributes);
5858
attributes.Remove("class", out var classes);

src/GovUk.Frontend.AspNetCore/TagHelpers/CookieBannerTagHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu
6161

6262
var cookieBannerContext = context.GetContextItem<CookieBannerContext>();
6363

64-
await output.GetChildContentAsync();
64+
_ = await output.GetChildContentAsync();
6565

6666
var attributes = new AttributeCollection(output.Attributes);
6767
attributes.Remove("class", out var classes);

src/GovUk.Frontend.AspNetCore/TagHelpers/DateInputFieldsetTagHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu
6969

7070
using (context.SetScopedContextItem(fieldsetContext))
7171
{
72-
await output.GetChildContentAsync();
72+
_ = await output.GetChildContentAsync();
7373
}
7474

7575
fieldsetContext.ThrowIfNotComplete();

src/GovUk.Frontend.AspNetCore/TagHelpers/DateInputItemTagHelperBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu
100100

101101
using (context.SetScopedContextItem(dateInputItemContext))
102102
{
103-
await output.GetChildContentAsync();
103+
_ = await output.GetChildContentAsync();
104104
}
105105

106106
var attributes = new AttributeCollection(output.Attributes);

0 commit comments

Comments
 (0)