chore: apply linting

This commit is contained in:
Adrien Raffin-Caboisse 2022-04-25 22:27:44 +02:00
parent 3d302441b6
commit 2c448d4a5c
No known key found for this signature in database
GPG key ID: 7FB60532DEBEAD6A
7 changed files with 24 additions and 13 deletions

View file

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