mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 20:01:18 +00:00
livereload: Simplify conditional
This commit is contained in:
parent
2c5e4f7640
commit
bafb77172b
1 changed files with 1 additions and 2 deletions
|
@ -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" ],
|
||||
|
|
Loading…
Reference in a new issue