Skip to content

Commit 8a0965f

Browse files
Refactor to remove redundant empty class body
Co-authored-by: Mauro Servienti <[email protected]>
1 parent 6e28b48 commit 8a0965f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
using NServiceBus;
22

3-
public class MyMessage :
4-
IMessage
5-
{
6-
}
3+
public class MyMessage : IMessage;

samples/logging/extensions-logging/Extensions.Logging_4/Sample/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848

4949
var endpointInstance = host.Services.GetRequiredService<IMessageSession>();
5050

51-
var myMessage = new MyMessage();
52-
await endpointInstance.SendLocal(myMessage);
51+
await endpointInstance.SendLocal(new MyMessage());
5352

5453
Console.WriteLine("Press any key to exit");
5554
Console.ReadKey();

0 commit comments

Comments
 (0)