Commands: Comment some useless codes (#3681)

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
HunterQ 2024-08-15 18:04:09 +10:00 committed by GitHub
parent 08d1840344
commit 030c9efc8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,10 +1,5 @@
package base package base
import (
"os"
"path"
)
// CommandEnvHolder is a struct holds the environment info of commands // CommandEnvHolder is a struct holds the environment info of commands
type CommandEnvHolder struct { type CommandEnvHolder struct {
// Executable name of current binary // Executable name of current binary
@ -17,10 +12,12 @@ type CommandEnvHolder struct {
var CommandEnv CommandEnvHolder var CommandEnv CommandEnvHolder
func init() { func init() {
/*
exec, err := os.Executable() exec, err := os.Executable()
if err != nil { if err != nil {
return return
} }
CommandEnv.Exec = path.Base(exec) CommandEnv.Exec = path.Base(exec)
*/
CommandEnv.Exec = "xray" CommandEnv.Exec = "xray"
} }