File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -181,15 +181,13 @@ func (tree *RevTree) UnmarshalJSON(inputjson []byte) (err error) {
181
181
(* tree )[rep.Revs [i ]] = info
182
182
}
183
183
184
- if len (rep .ChannelsMap ) > 0 {
185
- for iStr , channels := range rep .ChannelsMap {
186
- i , err := strconv .ParseInt (iStr , 10 , 64 )
187
- if err != nil {
188
- return err
189
- }
190
- info := (* tree )[rep.Revs [i ]]
191
- info .Channels = channels
184
+ for iStr , channels := range rep .ChannelsMap {
185
+ i , err := strconv .ParseInt (iStr , 10 , 64 )
186
+ if err != nil {
187
+ return err
192
188
}
189
+ info := (* tree )[rep.Revs [i ]]
190
+ info .Channels = channels
193
191
}
194
192
195
193
// we shouldn't be in a situation where we have both channels and channelsMap populated, but we still need to handle the old format
You can’t perform that action at this time.
0 commit comments