Skip to content

Commit

Permalink
Fixes bug ApplicationSettingsServiceHandler.Remove() not removing con…
Browse files Browse the repository at this point in the history
…tainers
  • Loading branch information
pedrolamas committed Apr 18, 2017
1 parent cac2179 commit 4305c1d
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,16 @@ public virtual void Remove(string key)
{
var container = GetContainer(key, out key);

if (container != null && container.Values.ContainsKey(key))
if (container != null)
{
container.Values.Remove(key);
if (container.Values.ContainsKey(key))
{
container.Values.Remove(key);
}
else if (container.Containers.ContainsKey(key))
{
container.DeleteContainer(key);
}
}
}

Expand Down

0 comments on commit 4305c1d

Please sign in to comment.