test(cli): drop an unused assignment flagged by staticcheck

This commit is contained in:
tgiachi 2026-11-10 12:01:54 +01:00
commit e8c359add5

View file

@ -988,7 +988,7 @@ func TestTokenIsNotSentOverPlainHTTPToARemoteHost(t *testing.T) {
t.Fatalf("PARSIMONY_URL: %d %q", code, errs)
}
// No token to protect, no URL check: offline commands never build the client.
code, _, errs = e.runEnv(t, nil, "", "--url", "http://lists.example.org", "dkim", "record", "example.org", "--key", filepath.Join(t.TempDir(), "none"))
_, _, errs = e.runEnv(t, nil, "", "--url", "http://lists.example.org", "dkim", "record", "example.org", "--key", filepath.Join(t.TempDir(), "none"))
if strings.Contains(errs, "--insecure") {
t.Fatalf("offline commands must not care about the URL")
}