aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-07-26 14:01:19 -0500
committerJP Dillingham <jp@dillingham.me>2025-07-26 14:01:19 -0500
commit89ab0c5e10aa8d9ad9d213b9b226eacb2cea9690 (patch)
tree7d266a6a63e49d011f5bb4dfa6c17be8b004dddf /src
parentcdacbc8a7ddacea2feaf430aa864de5372278379 (diff)
downloadslskd-89ab0c5e10aa8d9ad9d213b9b226eacb2cea9690.tar.gz
use consistent expression body for type init
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Events/Types/Events.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Events/Types/Events.cs b/src/slskd/Events/Types/Events.cs
index 2e829f52..15edbfb2 100644
--- a/src/slskd/Events/Types/Events.cs
+++ b/src/slskd/Events/Types/Events.cs
@@ -43,7 +43,7 @@ public abstract record Event
public sealed record DownloadFileCompleteEvent : Event
{
- public override EventType Type { get; } = EventType.DownloadFileComplete;
+ public override EventType Type => EventType.DownloadFileComplete;
public override int Version { get; } = 0;
public required string LocalFilename { get; init; }
public required string RemoteFilename { get; init; }
@@ -61,7 +61,7 @@ public sealed record DownloadDirectoryCompleteEvent : Event
public sealed record UploadFileCompleteEvent : Event
{
- public override EventType Type { get; } = EventType.UploadFileComplete;
+ public override EventType Type => EventType.UploadFileComplete;
public override int Version { get; } = 0;
public required string LocalFilename { get; init; }
public required string RemoteFilename { get; init; }