Use a more direct and less error-prone return value

Signed-off-by: pinglanlu <pinglanlu@outlook.com>
This commit is contained in:
pinglanlu 2024-11-12 14:22:35 +08:00
parent 4e44d57bf7
commit 58e4a66b42
1 changed files with 1 additions and 1 deletions

View File

@ -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.