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:
parent
026a803781
commit
a771e3401a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user