Skip to content

Commit

Permalink
Minor cleanup as suggested by @ties
Browse files Browse the repository at this point in the history
  • Loading branch information
cjeker committed Mar 1, 2024
1 parent 277cd1e commit a1c36d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/stayrtr/stayrtr.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ func (s *state) applyUpdateFromNewState(vrps []rtr.VRP, brks []rtr.BgpsecKey, va
for _, v := range vaps {
SDs = append(SDs, v.Copy())
}
if (s.server.AddData(SDs) == false) {
if !s.server.AddData(SDs) {
log.Info("No difference to current cache")
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion lib/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (s *Server) AddData(new []SendableData) bool {
curDiff := append(added, removed...)
s.sdlock.RUnlock()

if (len(curDiff) == 0) {
if len(curDiff) == 0 {
return false
} else {
s.AddSDsDiff(curDiff)
Expand Down

0 comments on commit a1c36d6

Please sign in to comment.