fix(wecom): pass lint and typo checks

Fix WeCom adapter typos and strict Go lint findings (gosec/bodyclose/errcheck/revive) while keeping runtime behavior unchanged.
This commit is contained in:
BBQ
2026-03-10 17:51:33 +08:00
committed by 晨苒
parent bc47655309
commit 599bfb5ca8
13 changed files with 118 additions and 111 deletions
@@ -8,7 +8,7 @@ import (
)
func TestDownloadFile_ParsesFilename(t *testing.T) {
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Content-Disposition", "attachment; filename*=UTF-8''hello%20wecom.txt")
w.WriteHeader(http.StatusOK)
_, _ = w.Write([]byte("ok"))