mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,7 @@ func (t *TailscaleInContainer) Netmap() (*netmap.NetworkMap, error) {
|
||||||
return nil, fmt.Errorf("saving netmap to /tmp/control: %w", err)
|
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.
|
// Netmap returns the current Netmap (netmap.NetworkMap) of the Tailscale instance.
|
||||||
|
|
Loading…
Reference in a new issue