hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit bafb77172b8896131db6fad002a32df087b6aec1
parent 2c5e4f7640e71d2a193a74e6c41109ec40bc0222
Author: srinivasreddy <thatiparthysreenivas@gmail.com>
Date:   Sun, 20 Mar 2016 23:49:51 +0530

livereload: Simplify conditional

Diffstat:
Mlivereload/connection.go | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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" ],