Skip to content

Commit 5036a9e

Browse files
Fix some warnings.
1 parent ae110f3 commit 5036a9e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/.editorconfig

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@
99
### Visual Studio
1010

1111
# IDE0063: Use simple 'using' statement
12-
dotnet_diagnostic.IDE0063.severity = none
12+
dotnet_diagnostic.IDE0063.severity = none
13+
14+
# IDE0074: Use compound assignment
15+
dotnet_diagnostic.IDE0074.severity = none
16+
17+
# IDE0290: Use primary constructor
18+
dotnet_diagnostic.IDE0290.severity = none

src/UnitTests.Databases.SqlServer/Comparer/SqlObjectComparer.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public static IList<SqlTableDifferences> Compare(IReadOnlyList<SqlTable> source,
210210

211211
if (columnsDifferences.Count + triggersDifferences.Count + checkConstraintDifferences.Count + indexesDifferences.Count + foreignKeysDifferences.Count + uniqueConstraintsDifferences.Count > 0 || primaryKeyDifferences is not null)
212212
{
213-
return new SqlTableDifferences(sourceTable, table, SqlObjectDifferenceType.Different, Array.Empty<SqlObjectPropertyDifference>(), columnsDifferences, triggersDifferences, checkConstraintDifferences, indexesDifferences, foreignKeysDifferences, uniqueConstraintsDifferences)
213+
return new SqlTableDifferences(sourceTable, table, SqlObjectDifferenceType.Different, [], columnsDifferences, triggersDifferences, checkConstraintDifferences, indexesDifferences, foreignKeysDifferences, uniqueConstraintsDifferences)
214214
{
215215
PrimaryKey = primaryKeyDifferences,
216216
};
@@ -308,7 +308,7 @@ private static T[] CreateArray<T>(T? value)
308308
{
309309
if (value is null)
310310
{
311-
return Array.Empty<T>();
311+
return [];
312312
}
313313

314314
return [value];

0 commit comments

Comments
 (0)