chore(lint): re-enable staticcheck and unused
golangci-lint v2.15.0 ships a honnef.co/go/tools that analyzes the Go 1.27 standard library without panicking. Fix what they found: dead helpers, an unused constant, error strings starting with a product name, the usage error, and two negations simplified by De Morgan. Closes #43 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
1ad68e2e87
commit
d58e3e2653
14 files changed
+20
-25
No files matched your search
@@ -356,7 +356,7 @@ var smsProviders = []Provider{
|
||||
} `json:"data"`
|
||||
}
|
||||
if err != nil || json.Unmarshal(reply, &login) != nil || !login.Success {
|
||||
return errors.Join(errors.New("Teltonika: sign-in failed"), err)
|
||||
return errors.Join(errors.New("sign-in to Teltonika failed"), err)
|
||||
}
|
||||
reply, err = c.callJSON(ctx, http.MethodPost, base+"/api/messages/actions/send", bearer(login.Data.Token), map[string]any{
|
||||
"data": map[string]any{"modem": cfg["modem"], "number": cfg["phone_number"], "message": truncate(m.sms(), 159)},
|
||||
|
||||
Reference in new issue
Block a user