diff options
author | srinivasreddy <[email protected]> | 2016-03-20 23:49:51 +0530 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2016-03-20 19:42:10 +0100 |
commit | bafb77172b8896131db6fad002a32df087b6aec1 (patch) | |
tree | ec55edf7305b6f3d0fe7f8a9ab1525b9dfc2cbb4 /livereload | |
parent | 2c5e4f7640e71d2a193a74e6c41109ec40bc0222 (diff) | |
download | hugo-bafb77172b8896131db6fad002a32df087b6aec1.tar.gz hugo-bafb77172b8896131db6fad002a32df087b6aec1.zip |
livereload: Simplify conditional
Diffstat (limited to 'livereload')
-rw-r--r-- | livereload/connection.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/livereload/connection.go b/livereload/connection.go index 533cfe889..154c823ff 100644 --- a/livereload/connection.go +++ b/livereload/connection.go @@ -33,8 +33,7 @@ func (c *connection) reader() { if err != nil { break } - switch true { - case bytes.Contains(message, []byte(`"command":"hello"`)): + if bytes.Contains(message, []byte(`"command":"hello"`)){ c.send <- []byte(`{ "command": "hello", "protocols": [ "http://livereload.com/protocols/official-7" ], |