mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-04 10:48:49 +00:00
GitHub Action CI: Add Go source file format check (#6090)
https://github.com/XTLS/Xray-core/pull/6057#issuecomment-4364819830 And https://github.com/XTLS/Xray-core/pull/6149#issuecomment-4546876261
This commit is contained in:
committed by
GitHub
parent
ca4b156b57
commit
d43a808ea5
@@ -59,7 +59,6 @@ func executeBalancerInfo(cmd *base.Command, args []string) {
|
||||
}
|
||||
|
||||
showBalancerInfo(resp.Balancer)
|
||||
|
||||
}
|
||||
|
||||
func showBalancerInfo(b *routerService.BalancerMsg) {
|
||||
|
||||
@@ -62,7 +62,8 @@ func addInboundUserAction(ctx context.Context, client handlerService.HandlerServ
|
||||
Operation: cserial.ToTypedMessage(
|
||||
&handlerService.AddUserOperation{
|
||||
User: user,
|
||||
}),
|
||||
},
|
||||
),
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -50,7 +50,8 @@ func executeRemoveUsers(cmd *base.Command, args []string) {
|
||||
Operation: cserial.ToTypedMessage(
|
||||
&handlerService.RemoveUserOperation{
|
||||
Email: email,
|
||||
}),
|
||||
},
|
||||
),
|
||||
})
|
||||
if err == nil {
|
||||
success += 1
|
||||
|
||||
@@ -38,9 +38,7 @@ Example:
|
||||
}
|
||||
|
||||
func executeAddRules(cmd *base.Command, args []string) {
|
||||
var (
|
||||
shouldAppend bool
|
||||
)
|
||||
var shouldAppend bool
|
||||
setSharedFlags(cmd)
|
||||
cmd.Flag.BoolVar(&shouldAppend, "append", false, "")
|
||||
cmd.Flag.Parse(args)
|
||||
@@ -96,5 +94,4 @@ func executeAddRules(cmd *base.Command, args []string) {
|
||||
}
|
||||
showJSONResponse(resp)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -56,5 +56,4 @@ func executeRemoveRules(cmd *base.Command, args []string) {
|
||||
}
|
||||
showJSONResponse(resp)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -136,5 +136,4 @@ func executeSourceIpBlock(cmd *base.Command, args []string) {
|
||||
base.Fatalf("failed to perform AddRule: %s", err)
|
||||
}
|
||||
showJSONResponse(resp)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user