mirror of
https://github.com/juanfont/headscale.git
synced 2026-02-23 13:50:36 +01:00
Flags registered on a cobra.Command cannot fail to read at runtime; GetString/GetUint64/GetStringSlice only error when the flag name is unknown. The error-handling blocks for these calls are unreachable dead code. Adopt the value, _ := pattern already used in api_key.go, preauthkeys.go and users.go, removing ~40 lines of dead code from nodes.go and debug.go. |
||
|---|---|---|
| .. | ||
| api_key.go | ||
| configtest.go | ||
| debug.go | ||
| dump_config.go | ||
| generate.go | ||
| health.go | ||
| mockoidc.go | ||
| nodes.go | ||
| policy.go | ||
| preauthkeys.go | ||
| pterm_style.go | ||
| root_test.go | ||
| root.go | ||
| serve.go | ||
| users.go | ||
| utils.go | ||
| version.go | ||