From 1ef4079c2b0203d439ed58b73c440d1ab9f6918b Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 6 Feb 2024 16:52:10 +0100 Subject: Types Server: Explain when the profile map can be empty --- types/server/server.go | 2 ++ 1 file changed, 2 insertions(+) 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"` -- cgit v1.2.3