1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-01 08:16:00 -04:00

Chore: fix lint (#533)

This commit is contained in:
Loyalsoldier 2020-12-20 11:30:31 +08:00 committed by GitHub
parent 6d25d51519
commit 8702812735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package serial
import ( import (
"errors" "errors"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/reflect/protoregistry" "google.golang.org/protobuf/reflect/protoregistry"

View File

@ -28,7 +28,8 @@ func Execute() {
BigCmdLoop: BigCmdLoop:
for bigCmd := RootCommand; ; { for bigCmd := RootCommand; ; {
for _, cmd := range bigCmd.Commands { for _, oCmd := range bigCmd.Commands {
cmd := oCmd
if cmd.Name() != args[0] { if cmd.Name() != args[0] {
continue continue
} }