Use a more direct and less error-prone return value
Signed-off-by: pinglanlu <pinglanlu@outlook.com>
This commit is contained in:
parent
4e44d57bf7
commit
58e4a66b42
|
@ -589,7 +589,7 @@ func (t *TailscaleInContainer) Netmap() (*netmap.NetworkMap, error) {
|
|||
return nil, fmt.Errorf("saving netmap to /tmp/control: %w", err)
|
||||
}
|
||||
|
||||
return &nm, err
|
||||
return &nm, nil
|
||||
}
|
||||
|
||||
// Netmap returns the current Netmap (netmap.NetworkMap) of the Tailscale instance.
|
||||
|
|
Loading…
Reference in New Issue