diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2023-01-12 15:57:54 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-01-13 13:43:47 +0100 |
| commit | ec26274cc6e0b4760c944c37b9b2bcc8abbf0fba (patch) | |
| tree | 51b2c0ca3a257a8fac1efcb17392f7bcc4dd00d1 /pkg | |
| parent | 96166539c4c242fccd41c7316b7080377dca428b (diff) | |
all: fix duplicate parameter types
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/email/parser.go | 2 | ||||
| -rw-r--r-- | pkg/runtest/run.go | 2 |
2 files changed, 2 insertions, 2 deletions
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] { |
