Skip to content

Commit

Permalink
chore: fix lint (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas authored Jun 4, 2023
1 parent f858af1 commit e8bd81f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ linters:
- nonamedreturns
- testableexamples
- musttag
- depguard
# Weird issues
- nolintlint

Expand Down
2 changes: 1 addition & 1 deletion publish_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func FuzzPublish(f *testing.F) {
}

for _, tc := range testCases {
f.Add(tc...)
f.Add(tc...) //nolint:govet
}

f.Fuzz(func(t *testing.T, topic1, topic2, id, data, private, retry, typ string) {
Expand Down
1 change: 1 addition & 0 deletions subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ func (h *Hub) write(w io.Writer, s zapcore.ObjectMarshaler, data string) bool {

// wait for the dispatch goroutine to finish
<-done

return false
}
}
Expand Down
2 changes: 1 addition & 1 deletion subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (h *Hub) initSubscription(currentURL string, w http.ResponseWriter, r *http
}
w.WriteHeader(http.StatusInternalServerError)

return
return lastEventID, subscribers, ok
}
if r.Header.Get("If-None-Match") == lastEventID {
w.WriteHeader(http.StatusNotModified)
Expand Down

0 comments on commit e8bd81f

Please sign in to comment.