From e339037a8feb7baa1cb550461b09a43b0277d726 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Tue, 5 May 2020 13:52:35 -0400 Subject: [PATCH] address review comments --- nomad/structs/csi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomad/structs/csi.go b/nomad/structs/csi.go index 73412055849..e37d0961e1f 100644 --- a/nomad/structs/csi.go +++ b/nomad/structs/csi.go @@ -719,7 +719,7 @@ func (p *CSIPlugin) AddPlugin(nodeID string, info *CSIInfo) error { // client, they also conflict on the client so this should be // ok p.Controllers[nodeID] = info - if prev != nil || prev == nil && info.Healthy { + if prev != nil || info.Healthy { p.Controllers[nodeID] = info } if info.Healthy { @@ -737,7 +737,7 @@ func (p *CSIPlugin) AddPlugin(nodeID string, info *CSIInfo) error { p.NodesHealthy -= 1 } } - if prev != nil || prev == nil && info.Healthy { + if prev != nil || info.Healthy { p.Nodes[nodeID] = info } if info.Healthy {