diff --git a/baseapp/streaming.go b/baseapp/streaming.go index 7d88c2d196f7..67ba9d086d13 100644 --- a/baseapp/streaming.go +++ b/baseapp/streaming.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "fmt" + "slices" "sort" "strconv" "strings" @@ -115,12 +116,7 @@ func (app *BaseApp) registerABCIListenerPlugin( } func exposeAll(list []string) bool { - for _, ele := range list { - if ele == "*" { - return true - } - } - return false + return slices.Contains(list, "*") } func exposeStoreKeysSorted(keysStr []string, keys map[string]*storetypes.KVStoreKey) []storetypes.StoreKey {