Skip to content

Commit

Permalink
Removed unnecessary null check
Browse files Browse the repository at this point in the history
Signed-off-by: Whit Waldo <[email protected]>
  • Loading branch information
WhitWaldo committed Oct 11, 2024
1 parent 1a7ca13 commit c24a082
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Dapr.Client/DaprClientGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2390,9 +2390,6 @@ public override async Task<DaprMetadata> GetMetadataAsync(CancellationToken canc
try
{
var response = await client.GetMetadataAsync(new Autogenerated.GetMetadataRequest(), options);
if (response is null)
return null;

return new DaprMetadata(response.Id ?? "",
response.ActorRuntime?.ActiveActors?.Select(c => new DaprActorMetadata(c.Type, c.Count)).ToList() ??
new List<DaprActorMetadata>(),
Expand Down

0 comments on commit c24a082

Please sign in to comment.