Skip to content

Commit

Permalink
using interface IReadOnlyDictionary instead of a dicrionary in TagSet…
Browse files Browse the repository at this point in the history
… and Tagging
  • Loading branch information
Алексей Даниленко committed Dec 17, 2022
1 parent 50f15fb commit d778090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Minio/DataModel/Tags/TagSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public TagSet()
Tag = null;
}

public TagSet(Dictionary<string, string> tags)
public TagSet(IReadOnlyDictionary<string, string> tags)
{
if (tags == null || tags.Count == 0) return;
Tag = new List<Tag>();
Expand Down
2 changes: 1 addition & 1 deletion Minio/DataModel/Tags/Tagging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public Tagging()
TaggingSet = null;
}

public Tagging(Dictionary<string, string> tags, bool isObjects)
public Tagging(IReadOnlyDictionary<string, string> tags, bool isObjects)
{
if (tags == null)
{
Expand Down

0 comments on commit d778090

Please sign in to comment.