chore: working on cleaning up more dup lines
SonarQube Analysis / sonarqube (pull_request) Successful in 3m37s
SonarQube Analysis / sonarqube (pull_request) Successful in 3m37s
This commit is contained in:
@@ -21,7 +21,7 @@ public class QueryBreakdownCollection : SqlBreakdownCollection
|
||||
/// </summary>
|
||||
public QueryBreakdownCollection() : base()
|
||||
{
|
||||
_queryBreakdowns = new List<QueryBreakdown>();
|
||||
_queryBreakdowns = [];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -31,7 +31,7 @@ public class QueryBreakdownCollection : SqlBreakdownCollection
|
||||
public QueryBreakdownCollection(IEnumerable<QueryBreakdown> queryBreakdowns)
|
||||
: base(queryBreakdowns?.Cast<ISqlBreakdown>() ?? Enumerable.Empty<ISqlBreakdown>())
|
||||
{
|
||||
_queryBreakdowns = queryBreakdowns?.ToList() ?? new List<QueryBreakdown>();
|
||||
_queryBreakdowns = queryBreakdowns?.ToList() ?? [];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -58,7 +58,7 @@ public class QueryBreakdownCollection : SqlBreakdownCollection
|
||||
/// <param name="queryBreakdowns">The QueryBreakdowns to add.</param>
|
||||
public void AddRange(IEnumerable<QueryBreakdown> queryBreakdowns)
|
||||
{
|
||||
foreach (var qb in queryBreakdowns ?? new List<QueryBreakdown>())
|
||||
foreach (var qb in queryBreakdowns ?? [])
|
||||
{
|
||||
Add(qb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user