Skip to content

Commit

Permalink
refactor(lint): Fixing lint comment on test
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed May 8, 2021
1 parent 14fb7f3 commit 7435124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion pkg/middleware/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ func TestMiddleware(t *testing.T) {
{
"simple",
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(model.ReadUser(r.Context()).Email))
if _, err := w.Write([]byte(model.ReadUser(r.Context()).Email)); err != nil {
t.Errorf("unable to write: %s", err)
}
}),
httptest.NewRequest(http.MethodGet, "/", nil),
"nobody@localhost",
Expand Down
7 changes: 3 additions & 4 deletions pkg/notifier/notifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ import (
)

var (
testEmail = "nobody@localhost"
repositoryName = "vibioh/ketchup"
repositoryVersion = "1.0.0"
repositoryBetaVersion = "1.0.0-beta1"
testEmail = "nobody@localhost"
repositoryName = "vibioh/ketchup"
repositoryVersion = "1.0.0"
)

func safeParse(version string) semver.Version {
Expand Down

0 comments on commit 7435124

Please sign in to comment.