errcheck issues fixed (#28418)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ac30b9d468
Коммит
0a92eb6363
@@ -87,7 +87,6 @@ issues:
|
|||||||
channels/api4/ip_filtering.go|\
|
channels/api4/ip_filtering.go|\
|
||||||
channels/api4/ip_filtering_test.go|\
|
channels/api4/ip_filtering_test.go|\
|
||||||
channels/api4/job_test.go|\
|
channels/api4/job_test.go|\
|
||||||
channels/api4/ldap.go|\
|
|
||||||
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|\
|
||||||
|
|||||||
@@ -140,7 +140,9 @@ func getLdapGroups(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Write(b)
|
if _, err := w.Write(b); err != nil {
|
||||||
|
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func linkLdapGroup(c *Context, w http.ResponseWriter, r *http.Request) {
|
func linkLdapGroup(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
@@ -240,7 +242,9 @@ func linkLdapGroup(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
auditRec.Success()
|
auditRec.Success()
|
||||||
|
|
||||||
w.WriteHeader(status)
|
w.WriteHeader(status)
|
||||||
w.Write(b)
|
if _, err := w.Write(b); err != nil {
|
||||||
|
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func unlinkLdapGroup(c *Context, w http.ResponseWriter, r *http.Request) {
|
func unlinkLdapGroup(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user