Compare commits

...

2 commits

Author SHA1 Message Date
pinglanlu
b8ba01fe54
Merge 58e4a66b42 into dc17b4d378 2024-11-23 01:31:52 +08:00
pinglanlu
58e4a66b42 Use a more direct and less error-prone return value
Signed-off-by: pinglanlu <pinglanlu@outlook.com>
2024-11-12 14:22:35 +08:00

View file

@ -637,7 +637,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.