[Modify] Polish it
This commit is contained in:
		@@ -3167,8 +3167,10 @@ namespace WebSocketSharp
 | 
				
			|||||||
        throw new ArgumentNullException ("data");
 | 
					        throw new ArgumentNullException ("data");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      byte[] bytes;
 | 
					      byte[] bytes;
 | 
				
			||||||
      if (!data.TryGetUTF8EncodedBytes (out bytes))
 | 
					      if (!data.TryGetUTF8EncodedBytes (out bytes)) {
 | 
				
			||||||
        throw new ArgumentException ("It could not be UTF-8-encoded.", "data");
 | 
					        var msg = "It could not be UTF-8-encoded.";
 | 
				
			||||||
 | 
					        throw new ArgumentException (msg, "data");
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      send (Opcode.Text, new MemoryStream (bytes));
 | 
					      send (Opcode.Text, new MemoryStream (bytes));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user