chore: apply linting
This commit is contained in:
parent
3d302441b6
commit
2c448d4a5c
7 changed files with 24 additions and 13 deletions
|
@ -363,8 +363,7 @@ func (h *Headscale) UpdateMachine(machine *Machine) error {
|
|||
// SetTags takes a Machine struct pointer and update the forced tags.
|
||||
func (h *Headscale) SetTags(machine *Machine, tags []string) error {
|
||||
machine.ForcedTags = tags
|
||||
err := h.UpdateACLRules()
|
||||
if err != nil {
|
||||
if err := h.UpdateACLRules(); err != nil {
|
||||
return err
|
||||
}
|
||||
h.setLastStateChangeToNow(machine.Namespace.Name)
|
||||
|
@ -670,6 +669,7 @@ func getTags(
|
|||
owners, err := expandTagOwners(aclPolicy, tag, stripEmailDomain)
|
||||
if errors.Is(err, errInvalidTag) {
|
||||
invalidTagMap[tag] = true
|
||||
|
||||
continue
|
||||
}
|
||||
var found bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue