@@ -156,9 +156,9 @@ func (s *Shell) SetBlockFuncs(blockFuncs []BlockFunc) {
158// CommandsBlocker creates a BlockFunc that blocks exact command matches
158// CommandsBlocker creates a BlockFunc that blocks exact command matches
159−func CommandsBlocker(bannedCommands []string) BlockFunc {
159+func CommandsBlocker(cmds []string) BlockFunc {
160 bannedSet := make(map[string]struct{})
160 bannedSet := make(map[string]struct{})
161− for _, cmd := range bannedCommands {
161+ for _, cmd := range cmds {
162 bannedSet[cmd] = struct{}{}
162 bannedSet[cmd] = struct{}{}