Skip to content

Commit

Permalink
Commands: Comment some useless codes (#3681)
Browse files Browse the repository at this point in the history
Co-authored-by: RPRX <[email protected]>
  • Loading branch information
jadeydi and RPRX authored Aug 15, 2024
1 parent 08d1840 commit 030c9ef
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions main/commands/base/env.go
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
}

0 comments on commit 030c9ef

Please sign in to comment.