refactor: have shorter argument name
commit2d2ee7f5abb2e7fcd7aaa79def712455f085ab5e
authorAndrey Nering <andreynering@users.noreply.github.com>
dateMon 18 Aug 2025, 14:25 (1 year ago)
parent9eb207f
internal/shell/shell.go+2−2
@@ -156,9 +156,9 @@ func (s *Shell) SetBlockFuncs(blockFuncs []BlockFunc) {
156156}
157157
158158// CommandsBlocker creates a BlockFunc that blocks exact command matches
159−func CommandsBlocker(bannedCommands []string) BlockFunc {
159+func CommandsBlocker(cmds []string) BlockFunc {
160160 bannedSet := make(map[string]struct{})
161− for _, cmd := range bannedCommands {
161+ for _, cmd := range cmds {
162162 bannedSet[cmd] = struct{}{}
163163 }
164164