Skip to content

Commit 2762ba9

Browse files
authored
Merge pull request #5 from haugjan/feature
Fix warnings
2 parents b2c4943 + 7de909e commit 2762ba9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Flow.ConfluenceSearch/ConfluenceClient/ConfluenceQueryBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ CancellationToken cancellationToken
4848
.When("@me")
4949
.ThenRemember("contributor = currentUser()")
5050
.When(@"@([\p{L}-]{2,})")
51-
.ThenRemember(async input => [$"contributor.fullname ~ {input}"])
51+
.ThenRemember(input => Task.FromResult<IEnumerable<string>>([$"contributor.fullname ~ {input}"]))
5252
.Aggregate(mem => $"({string.Join(" OR ", mem)})")
5353
.When(".*")
5454
.ThenRemember()

Flow.ConfluenceSearch/ConfluenceClient/ConfluenceSearchClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ CancellationToken ct
3131

3232
return await resp
3333
.Content.ReadFromJsonAsync<ContentSearchResponse>(cancellationToken: ct)
34-
.ConfigureAwait(false);
34+
.ConfigureAwait(false) ?? throw new ApplicationException("Invalid response from Confluence API");
3535
}
3636
}

0 commit comments

Comments
 (0)