Просмотр исходного кода

refactor: have shorter argument name

Andrey Nering 6 месяцев назад
Родитель
Сommit
2d2ee7f5ab
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      internal/shell/shell.go

+ 2 - 2
internal/shell/shell.go

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