Unverified Commit b3d43b8e authored by Tim Gross's avatar Tim Gross Committed by GitHub
Browse files

volumewatcher: remove spurious nil-check (#7858)

The nil-check here is left-over from an earlier approach that didn't
get merged. It doesn't do anything for us now as we can't ever pass it
`nil` and if we leave it in the `getVolume` call it guards will panic
anyways.
parent a763cdc3
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -117,7 +117,7 @@ func (vw *volumeWatcher) watch() {
case vol := <-vw.updateCh:
// while we won't make raft writes if we get a stale update,
// we can still fire extra CSI RPC calls if we don't check this
if vol == nil || vw.v == nil || vol.ModifyIndex >= vw.v.ModifyIndex {
if vol.ModifyIndex >= vw.v.ModifyIndex {
vol = vw.getVolume(vol)
if vol == nil {
return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment