Skip to content

Commit

Permalink
Simplify new statements (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Dec 18, 2022
1 parent 7acf310 commit 1e76284
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Cake.Issues/BaseRuleUrlResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public abstract class BaseRuleUrlResolver<T>
where T : BaseRuleDescription, new()
{
private readonly List<Tuple<Func<T, Uri>, int>> registeredUrlResolver = new List<Tuple<Func<T, Uri>, int>>();
private readonly List<Tuple<Func<T, Uri>, int>> registeredUrlResolver = new ();

/// <summary>
/// Registers a new resolver with default priority of <c>0</c>.
Expand Down
2 changes: 1 addition & 1 deletion src/Cake.Issues/IssueBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class IssueBuilder
private Uri ruleUrl;
private string run;
private FileLinkSettings fileLinkSettings;
private Dictionary<string, string> additionalInformation = new Dictionary<string, string>();
private Dictionary<string, string> additionalInformation = new ();

/// <summary>
/// Initializes a new instance of the <see cref="IssueBuilder"/> class.
Expand Down
2 changes: 1 addition & 1 deletion src/Cake.Issues/IssuesReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public class IssuesReader
{
private readonly ICakeLog log;
private readonly List<IIssueProvider> issueProviders = new List<IIssueProvider>();
private readonly List<IIssueProvider> issueProviders = new ();
private readonly IReadIssuesSettings settings;

/// <summary>
Expand Down

0 comments on commit 1e76284

Please sign in to comment.