Closed cschloer closed 4 years ago
Line 109 in package.go (https://github.com/frictionlessdata/datapackage-go/blob/master/datapackage/package.go#L109)
reads:
newSlice := append(rSlice[:index], rSlice[:index+1]...)
it should be
newSlice := append(rSlice[:index], rSlice[index+1:]...)
(second rSlice should be index+1: not :index+1
index+1:
:index+1
Currently RemoveResource actually removes every resource except for the desired resource.
Please preserve this line to notify @danielfireman (lead of this repository)
@roll Can we add this to the project board?
@cschloer done
Released version 1.0.1 with this fix. Thanks, @cschloer for reporting!
Thanks @danielfireman !
thank you!
Overview
Line 109 in package.go (https://github.com/frictionlessdata/datapackage-go/blob/master/datapackage/package.go#L109)
reads:
it should be
(second rSlice should be
index+1:
not:index+1
Currently RemoveResource actually removes every resource except for the desired resource.
Please preserve this line to notify @danielfireman (lead of this repository)