mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-23 00:28:48 +00:00
Remove implicit bool cast in JoinResult
This commit is contained in:
parent
61042ee5e8
commit
f16349225b
@ -1,4 +1,4 @@
|
|||||||
namespace VpSharp;
|
namespace VpSharp;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a join result.
|
/// Represents a join result.
|
||||||
@ -22,9 +22,4 @@ public readonly struct JoinResult
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The join response.</value>
|
/// <value>The join response.</value>
|
||||||
public JoinResponse Response { get; }
|
public JoinResponse Response { get; }
|
||||||
|
|
||||||
public static implicit operator bool(JoinResult result)
|
|
||||||
{
|
|
||||||
return result.Response == JoinResponse.Accepted;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user