mirror of https://github.com/oliverbooth/VpSharp
Remove implicit bool cast in JoinResult
This commit is contained in:
parent
61042ee5e8
commit
f16349225b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue