Skip to content

Commit 5c7f139

Browse files
fix linter
1 parent 6658f7c commit 5c7f139

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

src/EfCore.Ydb/src/Query/Internal/Translators/YdbQueryableAggregateMethodTranslator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
namespace EfCore.Ydb.Query.Internal.Translators;
1212

13+
#pragma warning disable CS0162
1314
public class YdbQueryableAggregateMethodTranslator(
1415
YdbSqlExpressionFactory sqlExpressionFactory,
1516
IRelationalTypeMappingSource typeMappingSource)

src/EfCore.Ydb/src/Storage/Internal/Mapping/YdbDecimalTypeMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ protected override string ProcessStoreType(
3535
: $"Decimal({parameters.Precision}, {parameters.Scale})";
3636

3737
public override MethodInfo GetDataReaderMethod() =>
38-
typeof(DbDataReader).GetRuntimeMethod(nameof(DbDataReader.GetDecimal), [typeof(int)])!;
38+
typeof(DbDataReader).GetRuntimeMethod(nameof(DbDataReader.GetDecimal), [typeof(int)]) ?? throw new Exception();
3939
}

src/EfCore.Ydb/src/Storage/Internal/Mapping/YdbJsonTypeMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected YdbJsonTypeMapping(RelationalTypeMappingParameters parameters) : base(
2121
}
2222

2323
private static readonly MethodInfo GetStringMethod
24-
= typeof(DbDataReader).GetRuntimeMethod(nameof(DbDataReader.GetString), [typeof(int)])!;
24+
= typeof(DbDataReader).GetRuntimeMethod(nameof(DbDataReader.GetString), [typeof(int)]) ?? throw new Exception();
2525

2626
private static readonly PropertyInfo? Utf8Property
2727
= typeof(Encoding).GetProperty(nameof(Encoding.UTF8));

src/EfCore.Ydb/src/Utilities/ArrayUtil.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ namespace EfCore.Ydb.Utilities;
33
internal static class ArrayUtil
44
{
55
internal static readonly bool[][] FalseArrays =
6-
{
7-
new bool[] { },
8-
new bool[] { false },
9-
new bool[] { false, false },
10-
new bool[] { false, false, false }
11-
};
6+
[
7+
[],
8+
[false],
9+
[false, false],
10+
[false, false, false]
11+
];
1212
}

src/EfCore.Ydb/test/EfCore.Ydb.FunctionalTests/TestUtilities/YdbTestStore.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ private static async Task ExecuteCommandAsync<T>(
116116
DbConnection connection,
117117
Func<DbCommand, Task<T>> execute,
118118
string sql,
119+
// ReSharper disable once UnusedParameter.Local
119120
bool useTransaction,
120121
object[]? parameters
121122
)

0 commit comments

Comments
 (0)