Browse Source

wgengine: rename local variable from 'found' to conventional 'ok'

Updates #cleanup

Change-Id: I799dc86ea9e4a3a949592abdd8e74282e7e5d086
Signed-off-by: Brad Fitzpatrick <[email protected]>
Brad Fitzpatrick 2 years ago
parent
commit
b4ff9a578f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wgengine/userspace.go

+ 1 - 1
wgengine/userspace.go

@@ -1051,7 +1051,7 @@ func (e *userspaceEngine) getStatus() (*Status, error) {
 
 	peers := make([]ipnstate.PeerStatusLite, 0, len(peerKeys))
 	for _, key := range peerKeys {
-		if status, found := e.getPeerStatusLite(key); found {
+		if status, ok := e.getPeerStatusLite(key); ok {
 			peers = append(peers, status)
 		}
 	}