]> Sergey Matveev's repositories - btrtrc.git/commit
bencode: Simplify `(*Decoder).parseListInterface()` (#656)
authorYenForYang <YenForYang@users.noreply.github.com>
Sat, 18 Sep 2021 02:42:20 +0000 (21:42 -0500)
committerGitHub <noreply@github.com>
Sat, 18 Sep 2021 02:42:20 +0000 (12:42 +1000)
commitd43769dc15508eb2230b18dcebbb47d9415972f5
tree302a9bedb5a0b9142eb3b1dc3176925e0dbd6f0a
parentf3a9ea5aa91d80b8ad202459a174ba126c2d2354
bencode: Simplify `(*Decoder).parseListInterface()` (#656)

Preserve as much type as possible (it'll be converted to an `interface{}` anyway, but we can return `[]interface{}` instead of `{}interface` here).
bencode/decode.go