golang-pubsub-youtube
golang-pubsub-youtube copied to clipboard
Fix slice out of bound
Error when removing client or subscription that located at the last index of slice
The first commit fixed out of bound problem when the last client which subs to more than one topic get unsubbed.
The second commit fixed out of bound problem when slices get appended, thus reducing the length, but the index increased to more the new-reduced-slice length.