Skip to content

Commit

Permalink
fix unregister call on command store usage
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Oct 6, 2021
1 parent aeb3c00 commit 4823589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ken.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (k *Ken) RegisterMiddlewares(mws ...interface{}) (err error) {
// This can be skipped if you are using
// a CommandStore.
func (k *Ken) Unregister() (err error) {
if len(k.idcache) == 0 {
if k.opt.CommandStore != nil {
return
}

Expand Down

0 comments on commit 4823589

Please sign in to comment.