summaryrefslogtreecommitdiff
path: root/cmd/gitlab-shell-authorized-principals-check/main.go
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-09-08 15:04:21 +0000
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-09-08 15:04:21 +0000
commitd0e09b414a9b069ec7bcbed2880b93c27cf3727c (patch)
tree16ab2acb6bcaeb1cc88acf01f1f7f4eb9dc1ca76 /cmd/gitlab-shell-authorized-principals-check/main.go
parent67415dc4f6f293460517d4281b5e4e80e66ffb91 (diff)
downloadgitlab-shell-d0e09b414a9b069ec7bcbed2880b93c27cf3727c.tar.gz
refactor: cleanup func signature and remove unused args
Diffstat (limited to 'cmd/gitlab-shell-authorized-principals-check/main.go')
-rw-r--r--cmd/gitlab-shell-authorized-principals-check/main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/gitlab-shell-authorized-principals-check/main.go b/cmd/gitlab-shell-authorized-principals-check/main.go
index d0e709c..3e18b9d 100644
--- a/cmd/gitlab-shell-authorized-principals-check/main.go
+++ b/cmd/gitlab-shell-authorized-principals-check/main.go
@@ -11,7 +11,6 @@ import (
"gitlab.com/gitlab-org/gitlab-shell/internal/console"
"gitlab.com/gitlab-org/gitlab-shell/internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/internal/logger"
- "gitlab.com/gitlab-org/gitlab-shell/internal/sshenv"
)
func main() {
@@ -36,7 +35,7 @@ func main() {
logCloser := logger.Configure(config)
defer logCloser.Close()
- cmd, err := cmd.New(executable, os.Args[1:], sshenv.Env{}, config, readWriter)
+ cmd, err := cmd.New(os.Args[1:], config, readWriter)
if err != nil {
// For now this could happen if `SSH_CONNECTION` is not set on
// the environment