Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
francislavoie committed Jul 25, 2022
1 parent cae12f2 commit 2ee7697
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/caddyevent/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (app *EventApp) Dispatch(event Event) error {
// listeners may mark the event to stop subsequent
// listeners from running on this event.
if event.IsPropagationStopped() {
app.logger.Debug("propogation stopped", zap.String("event", event.ID().Name()))
app.logger.Debug("propagation stopped", zap.String("event", event.ID().Name()))
break
}

Expand Down Expand Up @@ -186,9 +186,7 @@ func (app *EventApp) optimizeListeners() {

// add all the listeners in order of priority
for _, k := range keys {
for _, listener := range priorities[Priority(k)] {
app.optimized[eventID] = append(app.optimized[eventID], listener)
}
app.optimized[eventID] = append(app.optimized[eventID], priorities[Priority(k)]...)
}
}

Expand Down

0 comments on commit 2ee7697

Please sign in to comment.