mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-27 03:21:09 +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
|
||||
|
||||
Reference in New Issue
Block a user