Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Jul 25, 2023
1 parent 93a4029 commit 7222d38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,8 @@ func (e *Engine) GetPublisherHttpFunc() (http.HandlerFunc, error) {
if !e.pubHttpWithoutServer {
return nil, errors.New("HttpPublisherWithoutServer option not set")
}
if hp, ok := e.publisher.(*httpsync.Publisher); !ok {
hp, ok := e.publisher.(*httpsync.Publisher)
if !ok {
return nil, errors.New("publisher is not an http publisher")
}
return hp.ServeHTTP, nil
Expand Down

0 comments on commit 7222d38

Please sign in to comment.