Skip to content

Commit 030c9ef

Browse files
jadeydiRPRX
andauthored
Commands: Comment some useless codes (#3681)
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
1 parent 08d1840 commit 030c9ef

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

main/commands/base/env.go

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
package base
22

3-
import (
4-
"os"
5-
"path"
6-
)
7-
83
// CommandEnvHolder is a struct holds the environment info of commands
94
type CommandEnvHolder struct {
105
// Executable name of current binary
@@ -17,10 +12,12 @@ type CommandEnvHolder struct {
1712
var CommandEnv CommandEnvHolder
1813

1914
func init() {
20-
exec, err := os.Executable()
21-
if err != nil {
22-
return
23-
}
24-
CommandEnv.Exec = path.Base(exec)
15+
/*
16+
exec, err := os.Executable()
17+
if err != nil {
18+
return
19+
}
20+
CommandEnv.Exec = path.Base(exec)
21+
*/
2522
CommandEnv.Exec = "xray"
2623
}

0 commit comments

Comments
 (0)