Format code with gofmt

This commit is contained in:
brngates98
2026-01-24 18:22:40 -05:00
parent d0abba6ddb
commit 3996fd8683
2 changed files with 12 additions and 12 deletions

View File

@@ -369,7 +369,7 @@ func (u *InputUnifi) setControllerDefaults(c *Controller) *Controller { //nolint
if c.SaveTraffic == nil {
c.SaveTraffic = u.Default.SaveTraffic
}
if c.SaveIDs == nil {
c.SaveIDs = u.Default.SaveIDs
}

View File

@@ -18,17 +18,17 @@ const (
// Console represents a UniFi console from the remote API.
type Console struct {
ID string `json:"id"`
IPAddress string `json:"ipAddress"`
Type string `json:"type"`
Owner bool `json:"owner"`
IsBlocked bool `json:"isBlocked"`
ID string `json:"id"`
IPAddress string `json:"ipAddress"`
Type string `json:"type"`
Owner bool `json:"owner"`
IsBlocked bool `json:"isBlocked"`
ReportedState struct {
Name string `json:"name"`
Hostname string `json:"hostname"`
IP string `json:"ip"`
State string `json:"state"`
Mac string `json:"mac"`
Name string `json:"name"`
Hostname string `json:"hostname"`
IP string `json:"ip"`
State string `json:"state"`
Mac string `json:"mac"`
} `json:"reportedState"`
ConsoleName string // Derived field: name from reportedState
}
@@ -273,7 +273,7 @@ func (u *InputUnifi) discoverRemoteControllers(apiKey string) ([]*Controller, er
// Ensure defaults are set before calling setControllerDefaults
u.setDefaults(&u.Default)
// Copy defaults
controller = u.setControllerDefaults(controller)