lint: missing error check

This commit is contained in:
Umputun
2018-06-28 02:03:16 -05:00
parent 3cde98a480
commit ca8a20ba7e
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -37,13 +37,12 @@ func (d *DevAuthServer) Run() {
log.Printf("[DEBUG] dev oauth request %s %s %+v", r.Method, r.URL, r.Header)
switch {
case strings.HasPrefix(r.URL.Path, "/login/user"):
w.Write([]byte(devUserForm))
case strings.HasPrefix(r.URL.Path, "/login/oauth/authorize"):
if !d.nonInteractive && (r.ParseForm() != nil || r.Form.Get("username") == "") {
w.Write([]byte(fmt.Sprintf(devUserForm, r.URL.RawQuery)))
if _, err := w.Write([]byte(fmt.Sprintf(devUserForm, r.URL.RawQuery))); err != nil {
log.Printf("[WARN] can't write, %s", err)
}
return
}
+1 -1
View File
@@ -5,7 +5,7 @@
version: '2'
services:
remark:
remark42:
build: .
image: umputun/remark42:dev
container_name: "remark42-dev"