mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-23 17:41:05 +01:00
refactor and remove unused code
This commit is contained in:
@@ -9,8 +9,7 @@ type agentCommandValidator struct{}
|
||||
|
||||
func (v agentCommandValidator) IsCommandValid(cmd string) bool {
|
||||
switch cmd {
|
||||
case CommandStart,
|
||||
CommandNewClient:
|
||||
case CommandStart, CommandNewClient:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
@@ -72,8 +72,7 @@ func main() {
|
||||
E.LogFatal("init CA error", err)
|
||||
}
|
||||
|
||||
switch args.Command {
|
||||
case CommandNewClient:
|
||||
if args.Command == CommandNewClient {
|
||||
printNewClientHelp(ca)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user