Skip to content

Commit

Permalink
Merge pull request #20 from gkze/fix-index-oob
Browse files Browse the repository at this point in the history
Fix index ouf of bounds error
  • Loading branch information
gkze authored Apr 18, 2020
2 parents 3c89a00 + ec692aa commit 0dde66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starmanager/starmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ func (s *StarManager) RemoveStar(star *Star, wg *sync.WaitGroup) (bool, error) {

splitPath := strings.Split(starURL.Path, "/")

_, unstarErr := s.client.Activity.Unstar(s.context, splitPath[2], splitPath[3])
_, unstarErr := s.client.Activity.Unstar(s.context, splitPath[1], splitPath[2])
if unstarErr != nil {
log.Infof("An error occurred while attempting to unstar %s: %s\n",
star.URL, unstarErr.Error(),
Expand Down

0 comments on commit 0dde66c

Please sign in to comment.