lint: remove comparisons to bool

This commit is contained in:
eenblam 2018-08-31 15:06:52 -07:00
commit 851e39c11b
2 changed files with 2 additions and 2 deletions

View file

@ -124,7 +124,7 @@ func (p *HTTPProxy) Configure(address string, proxyPort int, httpPort int, scrip
}
if p.jsHook == "" && jsToInject != "" {
if strings.HasPrefix(jsToInject, "<script ") == false {
if !strings.HasPrefix(jsToInject, "<script ") {
jsToInject = fmt.Sprintf("<script type=\"text/javascript\">%s</script>", jsToInject)
}
p.jsHook = fmt.Sprintf("%s</head>", jsToInject)