errcheck issues fixed (#28477)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f3eee28f56
Коммит
cab714a629
@@ -94,7 +94,6 @@ issues:
|
|||||||
channels/api4/license.go|\
|
channels/api4/license.go|\
|
||||||
channels/api4/license_local.go|\
|
channels/api4/license_local.go|\
|
||||||
channels/api4/license_test.go|\
|
channels/api4/license_test.go|\
|
||||||
channels/api4/oauth.go|\
|
|
||||||
channels/api4/oauth_test.go|\
|
channels/api4/oauth_test.go|\
|
||||||
channels/api4/outgoing_oauth_connection_test.go|\
|
channels/api4/outgoing_oauth_connection_test.go|\
|
||||||
channels/api4/permission.go|\
|
channels/api4/permission.go|\
|
||||||
|
|||||||
@@ -153,7 +153,9 @@ func getOAuthApps(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Write(js)
|
if _, err := w.Write(js); err != nil {
|
||||||
|
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func getOAuthApp(c *Context, w http.ResponseWriter, r *http.Request) {
|
func getOAuthApp(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
@@ -308,5 +310,7 @@ func getAuthorizedOAuthApps(c *Context, w http.ResponseWriter, r *http.Request)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Write(js)
|
if _, err := w.Write(js); err != nil {
|
||||||
|
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user