diff --git a/scheduler/generic_sched.go b/scheduler/generic_sched.go index 61a5bf594..7ac4d5a3f 100644 --- a/scheduler/generic_sched.go +++ b/scheduler/generic_sched.go @@ -596,7 +596,7 @@ func (s *GenericScheduler) findPreferredNode(place placementResult) (*structs.No if prev := place.PreviousAllocation(); prev != nil && place.TaskGroup().EphemeralDisk.Sticky == true { var preferredNode *structs.Node ws := memdb.NewWatchSet() - preferredNode, err = s.state.NodeByID(ws, prev.NodeID) + preferredNode, err := s.state.NodeByID(ws, prev.NodeID) if err != nil { return nil, err }