diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-06 16:52:10 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | 1ef4079c2b0203d439ed58b73c440d1ab9f6918b (patch) | |
| tree | b4c0091057a70a50d1ac98de66bab67829eba197 | |
| parent | 1e0e5bf22a8d8f71090ec14b24d53cd9c748c766 (diff) | |
Types Server: Explain when the profile map can be empty
| -rw-r--r-- | types/server/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/types/server/server.go b/types/server/server.go index 4e54987..5371197 100644 --- a/types/server/server.go +++ b/types/server/server.go @@ -92,6 +92,8 @@ type Profile struct { type Profiles struct { // Map, the map of profiles from profile ID to the profile contents // If this is empty, the field is omitted from the JSON + // Note that it can be empty if the profiles have not been initialized + // This could happen if a config is not obtained yet Map map[string]Profile `json:"map,omitempty"` // Current is the current profile ID that is defined Current string `json:"current"` |
