fix: linting

This commit is contained in:
Adrien Raffin-Caboisse committed 2022-04-21 23:56:58 +02:00
1 parent 17d6624bb9
commit b9fee36f6e
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -361,7 +361,7 @@ func (h *Headscale) UpdateMachine(machine *Machine) error {
}
// 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 {
destMachine := Machine{}
if result := h.db.Where("id = ?", machine.ID).Find(&destMachine); result.Error != nil {