Skip to content

Commit 7541210

Browse files
committed
[Modify] Output a state in lowercase
1 parent b1e77df commit 7541210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

websocket-sharp/Ext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ internal static string CheckIfAvailable (
201201
return (!ready && (state == ServerState.Ready || state == ServerState.Stop)) ||
202202
(!start && state == ServerState.Start) ||
203203
(!shutting && state == ServerState.ShuttingDown)
204-
? "This operation isn't available in: " + state
204+
? "This operation isn't available in: " + state.ToString ().ToLower ()
205205
: null;
206206
}
207207

@@ -212,7 +212,7 @@ internal static string CheckIfAvailable (
212212
(!open && state == WebSocketState.Open) ||
213213
(!closing && state == WebSocketState.Closing) ||
214214
(!closed && state == WebSocketState.Closed)
215-
? "This operation isn't available in: " + state
215+
? "This operation isn't available in: " + state.ToString ().ToLower ()
216216
: null;
217217
}
218218

0 commit comments

Comments
 (0)