Skip to content

Commit

Permalink
home: fix nil, imp docs
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Apr 25, 2022
1 parent aaa7765 commit 41fb071
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions internal/home/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ func (clients *clientsContainer) Start() {
webHandlersRegistered = true
clients.registerWebHandlers()
}
if clients.arpdb != nil {
go clients.periodicUpdate()
}
go clients.periodicUpdate()
}
}

// Reload reloads runtime clients.
func (clients *clientsContainer) Reload() {
clients.addFromSystemARP()
if clients.arpdb != nil {
clients.addFromSystemARP()
}
}

type clientObject struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/home/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const currentSchemaVersion = 14

// These aliases are provided for convenience.
//
// TODO(e.burkov): Remove any after updating to go1.18.
// TODO(e.burkov): Remove any after updating to Go 1.18.
type (
any = interface{}
yarr = []any
Expand Down

0 comments on commit 41fb071

Please sign in to comment.