Skip to content

Commit 317bfc3

Browse files
kamilbaczekkamilbaczek
authored andcommitted
refactor: update return statement to use array spread syntax
1 parent 490a56b commit 317bfc3

File tree

1 file changed

+1
-1
lines changed
  • Chapter-3-microservice-extraction/Fitnet.Common/Fitnet.Common.IntegrationTestsToolbox/TestEngine/EventBus

1 file changed

+1
-1
lines changed

Chapter-3-microservice-extraction/Fitnet.Common/Fitnet.Common.IntegrationTestsToolbox/TestEngine/EventBus/EventBusExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ public static async Task<IEnumerable<IReceivedMessage<TMessage>>> WaitToConsumeM
5454
}
5555
}
5656

57-
return testHarness.Consumed!.Select<TMessage>(cancellationToken)!.ToList();
57+
return [.. testHarness.Consumed!.Select<TMessage>(cancellationToken)];
5858
}
5959
}

0 commit comments

Comments
 (0)