aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/email
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-03-08 18:48:26 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-03-08 18:48:26 +0100
commit36d1c4540af3ef058d68092e41af05aa4a8c5eca (patch)
tree3657a5920e4b100749ccb9d2d555652e7b7e28e9 /pkg/email
parent63ef857906766b3cafe4aebc43bc38edf42096c3 (diff)
all: fix gometalinter warnings
Fix typos, non-canonical code, remove dead code, etc.
Diffstat (limited to 'pkg/email')
-rw-r--r--pkg/email/parser_test.go3
-rw-r--r--pkg/email/patch_test.go2
2 files changed, 4 insertions, 1 deletions
diff --git a/pkg/email/parser_test.go b/pkg/email/parser_test.go
index 69e237806..a99ab17f6 100644
--- a/pkg/email/parser_test.go
+++ b/pkg/email/parser_test.go
@@ -91,6 +91,9 @@ func TestAddAddrContextEmptyName(t *testing.T) {
t.Fatalf("want: %q, got %q", want, email1)
}
email2, context1, err := RemoveAddrContext(email1)
+ if err != nil {
+ t.Fatal(err)
+ }
if email != email2 {
t.Fatalf("want: %q, got %q", email, email2)
}
diff --git a/pkg/email/patch_test.go b/pkg/email/patch_test.go
index b10211ff0..c8cae4621 100644
--- a/pkg/email/patch_test.go
+++ b/pkg/email/patch_test.go
@@ -157,7 +157,7 @@ The handling of the might_cancel queueing is not properly protected, so
parallel operations on the file descriptor can race with each other and
lead to list corruptions or use after free.
-Protect the context for these operations with a seperate lock.
+Protect the context for these operations with a separate lock.
Reported-by: Foo Bar <foo@bar.com>
Signed-off-by: Foo Bar <foo@bar.com>