Skip to content

Commit

Permalink
Merge pull request #16 from gkarthiks/fix/index-out-of-range
Browse files Browse the repository at this point in the history
fix: for index out of range
  • Loading branch information
gkarthiks authored Jul 28, 2020
2 parents c5fbeb7 + 2f11909 commit dd249c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions types/vault_pool_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (vp *VaultPool) RetireBackend(b *VaultBackend) {
copy(vp.VaultBackends[i:], vp.VaultBackends[i+1:])
vp.VaultBackends[len(vp.VaultBackends)-1] = nil
vp.VaultBackends = vp.VaultBackends[:len(vp.VaultBackends)-1]
break
}
}
}
Expand Down

0 comments on commit dd249c5

Please sign in to comment.