Skip to content

Commit

Permalink
chore: slice replace loop (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Jul 11, 2023
1 parent c192c65 commit 0ba3b68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/service/survey/survey.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ func (c *Surveyor) Start() {

// HandleFunc adds a handler for a query.
func (c *Surveyor) HandleFunc(surveyees ...Surveyee) {
for _, h := range surveyees {
c.handlers = append(c.handlers, h)
}
c.handlers = append(c.handlers, surveyees...)
}

// ID returns the unique identifier of the subsriber.
Expand Down

0 comments on commit 0ba3b68

Please sign in to comment.