From ec26274cc6e0b4760c944c37b9b2bcc8abbf0fba Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 12 Jan 2023 15:57:54 +0100 Subject: all: fix duplicate parameter types --- pkg/email/parser.go | 2 +- pkg/runtest/run.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg') diff --git a/pkg/email/parser.go b/pkg/email/parser.go index 6974f66d5..e2d3d0ab8 100644 --- a/pkg/email/parser.go +++ b/pkg/email/parser.go @@ -64,7 +64,7 @@ func prepareEmails(list []string) map[string]bool { return ret } -func Parse(r io.Reader, ownEmails []string, goodLists []string) (*Email, error) { +func Parse(r io.Reader, ownEmails, goodLists []string) (*Email, error) { msg, err := mail.ReadMessage(r) if err != nil { return nil, fmt.Errorf("failed to read email: %v", err) diff --git a/pkg/runtest/run.go b/pkg/runtest/run.go index f8ef5cb86..d58f148cb 100644 --- a/pkg/runtest/run.go +++ b/pkg/runtest/run.go @@ -378,7 +378,7 @@ func (ctx *Context) produceTest(progs chan *RunRequest, req *RunRequest, name st progs <- req } -func match(props map[string]bool, requires map[string]bool) bool { +func match(props, requires map[string]bool) bool { for req, positive := range requires { if positive { if !props[req] { -- cgit mrf-deployment