Browse Source

Just a consistent variable name.

pull/935/head
Sebastian 4 years ago
parent
commit
a5590bdbbd
  1. 6
      backend/src/Squidex.Domain.Apps.Entities/Tags/TagService.cs

6
backend/src/Squidex.Domain.Apps.Entities/Tags/TagService.cs

@ -177,7 +177,7 @@ namespace Squidex.Domain.Apps.Entities.Tags
public TagsSet GetTags(long version) public TagsSet GetTags(long version)
{ {
var clone = new Dictionary<string, int>(); var tags = new Dictionary<string, int>();
foreach (var tag in Tags.Values) foreach (var tag in Tags.Values)
{ {
@ -185,10 +185,10 @@ namespace Squidex.Domain.Apps.Entities.Tags
var name = NormalizeName(tag.Name); var name = NormalizeName(tag.Name);
// An old bug could have produced duplicate names. // An old bug could have produced duplicate names.
clone[name] = clone.GetValueOrDefault(name) + tag.Count; tags[name] = tags.GetValueOrDefault(name) + tag.Count;
} }
return new TagsSet(clone, version); return new TagsSet(tags, version);
} }
private static string NormalizeName(string name) private static string NormalizeName(string name)

Loading…
Cancel
Save