Other: Linter to ignore test parameters

This commit is contained in:
James Houlahan
2022-10-25 13:16:36 +02:00
parent 83c7396f2d
commit 4df8ce1b58

View File

@ -349,7 +349,7 @@ func TestGetMessageHash(t *testing.T) {
}
}
func testTryInsert(h *sendRecorder, literal string, deadline time.Time) (string, bool, error) {
func testTryInsert(h *sendRecorder, literal string, deadline time.Time) (string, bool, error) { //nolint:unparam
hash, err := getMessageHash([]byte(literal))
if err != nil {
return "", false, err
@ -363,7 +363,7 @@ func testTryInsert(h *sendRecorder, literal string, deadline time.Time) (string,
return hash, ok, nil
}
func testHasEntry(h *sendRecorder, literal string, deadline time.Time) (string, bool, error) {
func testHasEntry(h *sendRecorder, literal string, deadline time.Time) (string, bool, error) { //nolint:unparam
hash, err := getMessageHash([]byte(literal))
if err != nil {
return "", false, err