1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

Fix: lint error (#995)

This commit is contained in:
Loyalsoldier 2021-05-11 08:36:06 +08:00 committed by GitHub
parent 026a803781
commit a771e3401a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -87,8 +87,7 @@ func (s *Service) Subscribe(name string) *Subscriber {
done: done.New(),
}
s.Lock()
subs := append(s.subs[name], sub)
s.subs[name] = subs
s.subs[name] = append(s.subs[name], sub)
s.Unlock()
common.Must(s.ctask.Start())
return sub

View File

@ -93,8 +93,8 @@ func Run(binary string, args []string) (string, error) {
func RunMany(binary string, args, files []string) {
fmt.Println("Processing...")
for _, file := range files {
args2 := append(args, file)
output, err := Run(binary, args2)
args := append(args, file)
output, err := Run(binary, args)
if err != nil {
fmt.Println(err)
continue