Skip to content

Commit ea0c08c

Browse files
Micky5991dr1zzle
authored and
dr1zzle
committed
Change Empty() to be a static property
1 parent 2cf8f5c commit ea0c08c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

JustAnotherVoiceChat.Server.Wrapper/src/Structs/VoiceHandle.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ namespace JustAnotherVoiceChat.Server.Wrapper.Structs
2929
{
3030
public struct VoiceHandle
3131
{
32+
public static VoiceHandle Empty => new VoiceHandle(0);
3233

3334
public bool IsEmpty => Identifer == 0;
34-
3535
public ushort Identifer { get; }
3636

3737
public VoiceHandle(ushort identifer)
@@ -64,10 +64,5 @@ public override int GetHashCode()
6464
{
6565
return !left.Equals(right);
6666
}
67-
68-
public static VoiceHandle Empty()
69-
{
70-
return new VoiceHandle(0);
71-
}
7267
}
7368
}

0 commit comments

Comments
 (0)