chore(all): modernized code with slices (#24125)

Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com>
This commit is contained in:
quantix9
2025-03-25 17:31:32 +00:00
committed by GitHub
co-authored by Tyler
parent 731d9305ff
commit 5254d57c5b
8 changed files with 17 additions and 39 deletions
+2 -6
View File
@@ -2,6 +2,7 @@ package baseapp
import (
"fmt"
"slices"
"sort"
"strings"
@@ -80,12 +81,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 {