livereload: Simplify conditional

This commit is contained in:
srinivasreddy authored and Bjørn Erik Pedersen committed 2016-03-20 19:42:10 +01:00
1 parent 2c5e4f7640
commit bafb77172b
1 file changed
+1 -2
+1 -2
View File
@@ -33,8 +33,7 @@ func (c *connection) reader() {
if err != nil { if err != nil {
break break
} }
switch true { if bytes.Contains(message, []byte(`"command":"hello"`)){
case bytes.Contains(message, []byte(`"command":"hello"`)):
c.send <- []byte(`{ c.send <- []byte(`{
"command": "hello", "command": "hello",
"protocols": [ "http://livereload.com/protocols/official-7" ], "protocols": [ "http://livereload.com/protocols/official-7" ],