1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-10 02:35:42 +00:00

Remove implicit bool cast in JoinResult

This commit is contained in:
Oliver Booth 2022-11-30 18:39:33 +00:00
parent 61042ee5e8
commit f16349225b
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -1,4 +1,4 @@
namespace VpSharp;
namespace VpSharp;
/// <summary>
/// Represents a join result.
@ -22,9 +22,4 @@ public readonly struct JoinResult
/// </summary>
/// <value>The join response.</value>
public JoinResponse Response { get; }
public static implicit operator bool(JoinResult result)
{
return result.Response == JoinResponse.Accepted;
}
}