misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-02-21 12:09:18 +01:00
commit ec842d217e
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 22 additions and 22 deletions

View file

@ -111,7 +111,7 @@ func (dev *HIDDevice) ChannelsList() []string {
defer dev.Unlock()
chans := []string{}
for ch, _ := range dev.channels {
for ch := range dev.channels {
chans = append(chans, fmt.Sprintf("%d", ch))
}