mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-30 13:35:23 +00:00
fix: linting
This commit is contained in:
parent
17d6624bb9
commit
b9fee36f6e
1
acls.go
1
acls.go
@ -267,6 +267,7 @@ func expandAlias(
|
|||||||
alias,
|
alias,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ips, nil
|
return ips, nil
|
||||||
} else {
|
} else {
|
||||||
return ips, err
|
return ips, err
|
||||||
|
@ -361,7 +361,7 @@ func (h *Headscale) UpdateMachine(machine *Machine) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UpdateDBMachine takes a Machine struct pointer (typically already loaded from database
|
// UpdateDBMachine takes a Machine struct pointer (typically already loaded from database
|
||||||
// search for the same machine in the database and update the latter
|
// search for the same machine in the database and update the latter.
|
||||||
func (h *Headscale) UpdateDBMachine(machine Machine) error {
|
func (h *Headscale) UpdateDBMachine(machine Machine) error {
|
||||||
destMachine := Machine{}
|
destMachine := Machine{}
|
||||||
if result := h.db.Where("id = ?", machine.ID).Find(&destMachine); result.Error != nil {
|
if result := h.db.Where("id = ?", machine.ID).Find(&destMachine); result.Error != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user