Skip to content

Commit

Permalink
Simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
nurhafiz committed May 2, 2024
1 parent d2fe0b4 commit a7270ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Toimik.RobotsProtocol/RobotsTag/RobotsTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public sealed class RobotsTag
{
public const string UserAgentForCatchAll = "robots";

private readonly Dictionary<string, IDictionary<string, ISet<Tag>>> userAgentToDirectiveToTags = new Dictionary<string, IDictionary<string, ISet<Tag>>>(StringComparer.OrdinalIgnoreCase);
private readonly Dictionary<string, IDictionary<string, ISet<Tag>>> userAgentToDirectiveToTags = new(StringComparer.OrdinalIgnoreCase);

public RobotsTag()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Toimik.RobotsProtocol/RobotsTxt/RobotsTxt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ public sealed class RobotsTxt

private const string UserAgentForCatchAll = "*";

private readonly Dictionary<string, ISet<string>> customFieldToValues = new Dictionary<string, ISet<string>>(StringComparer.OrdinalIgnoreCase);
private readonly Dictionary<string, ISet<string>> customFieldToValues = new(StringComparer.OrdinalIgnoreCase);

private readonly ISet<string> sitemaps = new HashSet<string>();

private readonly Dictionary<string, RuleGroup> userAgentToRuleGroup = new Dictionary<string, RuleGroup>(StringComparer.OrdinalIgnoreCase);
private readonly Dictionary<string, RuleGroup> userAgentToRuleGroup = new(StringComparer.OrdinalIgnoreCase);

/// <summary>
/// Initializes a new instance of the <see cref="RobotsTxt"/> class.
Expand Down

0 comments on commit a7270ac

Please sign in to comment.