diff options
author | Imcom Jin <jinyu.bjut@gmail.com> | 2021-10-18 12:43:54 +0800 |
---|---|---|
committer | Imcom Jin <jinyu.bjut@gmail.com> | 2021-10-18 12:43:54 +0800 |
commit | 313b5cf02cb225204372ced27dea8ab3b2fd3315 (patch) | |
tree | 5183501246878b31ecae3ef60efafcc75c6fa3e8 /pkg/server/fsm.go | |
parent | 1684b45610ddd115762da1a154e8577a903f2cfe (diff) |
chore: fix linting ineffassign and redundant type from array, slice, or map composite literal
Diffstat (limited to 'pkg/server/fsm.go')
-rw-r--r-- | pkg/server/fsm.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/server/fsm.go b/pkg/server/fsm.go index fedf3018..a42ee910 100644 --- a/pkg/server/fsm.go +++ b/pkg/server/fsm.go @@ -873,7 +873,8 @@ func (h *fsmHandler) afiSafiDisable(rf bgp.RouteFamily) string { } func (h *fsmHandler) handlingError(m *bgp.BGPMessage, e error, useRevisedError bool) bgp.ErrorHandling { - handling := bgp.ERROR_HANDLING_NONE + // ineffectual assignment to handling (ineffassign) + var handling bgp.ErrorHandling if m.Header.Type == bgp.BGP_MSG_UPDATE && useRevisedError { factor := e.(*bgp.MessageError) handling = factor.ErrorHandling |