Skip to content

Commit

Permalink
fixup! Update in-process resolver to support flag metadata open-featu…
Browse files Browse the repository at this point in the history
…re#305

Signed-off-by: christian.lutnik <[email protected]>
  • Loading branch information
chrfwow committed Jan 15, 2025
1 parent 934e580 commit 0ff89cd
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,15 @@ internal void Sync(FlagConfigurationUpdateType updateType, string flagConfigurat
{
case FlagConfigurationUpdateType.ALL:
_flags = flagConfigsMap.Flags;
_flagSetMetadata = flagConfigsMap.Metadata;
if (flagConfigsMap.Metadata == null)
{
_flagSetMetadata.Clear();
}
else
{
_flagSetMetadata = flagConfigsMap.Metadata;
}

break;
case FlagConfigurationUpdateType.ADD:
case FlagConfigurationUpdateType.UPDATE:
Expand Down

0 comments on commit 0ff89cd

Please sign in to comment.