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
1 changed files with 1 additions and 6 deletions

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;
}
}