From 030c9efc8ce914bf2fcf97aa7cc91282397fa590 Mon Sep 17 00:00:00 2001 From: HunterQ Date: Thu, 15 Aug 2024 18:04:09 +1000 Subject: [PATCH] Commands: Comment some useless codes (#3681) Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com> --- main/commands/base/env.go | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/main/commands/base/env.go b/main/commands/base/env.go index 75d141e9..27ba0b1c 100644 --- a/main/commands/base/env.go +++ b/main/commands/base/env.go @@ -1,10 +1,5 @@ package base -import ( - "os" - "path" -) - // CommandEnvHolder is a struct holds the environment info of commands type CommandEnvHolder struct { // Executable name of current binary @@ -17,10 +12,12 @@ type CommandEnvHolder struct { var CommandEnv CommandEnvHolder func init() { - exec, err := os.Executable() - if err != nil { - return - } - CommandEnv.Exec = path.Base(exec) + /* + exec, err := os.Executable() + if err != nil { + return + } + CommandEnv.Exec = path.Base(exec) + */ CommandEnv.Exec = "xray" }