@@ -354,8 +354,7 @@ public bool TryParse(in RawResult result, out TimeSpan? expiry)
354354 switch ( result . Resp2TypeBulkString )
355355 {
356356 case ResultType . Integer :
357- long time ;
358- if ( result . TryGetInt64 ( out time ) )
357+ if ( result . TryGetInt64 ( out long time ) )
359358 {
360359 if ( time < 0 )
361360 {
@@ -470,7 +469,7 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes
470469 var newServer = message . Command switch
471470 {
472471 RedisCommand . SUBSCRIBE or RedisCommand . SSUBSCRIBE or RedisCommand . PSUBSCRIBE => connection . BridgeCouldBeNull ? . ServerEndPoint ,
473- _ => null
472+ _ => null ,
474473 } ;
475474 Subscription ? . SetCurrentServer ( newServer ) ;
476475 return true ;
@@ -1253,17 +1252,15 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes
12531252 switch ( result . Resp2TypeBulkString )
12541253 {
12551254 case ResultType . Integer :
1256- long i64 ;
1257- if ( result . TryGetInt64 ( out i64 ) )
1255+ if ( result . TryGetInt64 ( out long i64 ) )
12581256 {
12591257 SetResult ( message , i64 ) ;
12601258 return true ;
12611259 }
12621260 break ;
12631261 case ResultType . SimpleString :
12641262 case ResultType . BulkString :
1265- double val ;
1266- if ( result . TryGetDouble ( out val ) )
1263+ if ( result . TryGetDouble ( out double val ) )
12671264 {
12681265 SetResult ( message , val ) ;
12691266 return true ;
@@ -1366,8 +1363,7 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes
13661363 case ResultType . Integer :
13671364 case ResultType . SimpleString :
13681365 case ResultType . BulkString :
1369- long i64 ;
1370- if ( result . TryGetInt64 ( out i64 ) )
1366+ if ( result . TryGetInt64 ( out long i64 ) )
13711367 {
13721368 SetResult ( message , i64 ) ;
13731369 return true ;
@@ -1423,8 +1419,7 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes
14231419 SetResult ( message , null ) ;
14241420 return true ;
14251421 }
1426- double val ;
1427- if ( result . TryGetDouble ( out val ) )
1422+ if ( result . TryGetDouble ( out double val ) )
14281423 {
14291424 SetResult ( message , val ) ;
14301425 return true ;
@@ -1449,8 +1444,7 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes
14491444 SetResult ( message , null ) ;
14501445 return true ;
14511446 }
1452- long i64 ;
1453- if ( result . TryGetInt64 ( out i64 ) )
1447+ if ( result . TryGetInt64 ( out long i64 ) )
14541448 {
14551449 SetResult ( message , i64 ) ;
14561450 return true ;
@@ -2167,7 +2161,10 @@ private sealed class RedisStreamInterleavedProcessor : ValuePairInterleavedProce
21672161 protected override bool AllowJaggedPairs => false ; // we only use this on a flattened map
21682162
21692163 public static readonly RedisStreamInterleavedProcessor Instance = new ( ) ;
2170- private RedisStreamInterleavedProcessor ( ) { }
2164+ private RedisStreamInterleavedProcessor ( )
2165+ {
2166+ }
2167+
21712168 protected override RedisStream Parse ( in RawResult first , in RawResult second , object ? state )
21722169 => new ( key : first . AsRedisKey ( ) , entries : ( ( MultiStreamProcessor ) state ! ) . ParseRedisStreamEntries ( second ) ) ;
21732170 }
@@ -2549,7 +2546,10 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes
25492546 internal class StreamNameValueEntryProcessor : ValuePairInterleavedProcessorBase < NameValueEntry >
25502547 {
25512548 public static readonly StreamNameValueEntryProcessor Instance = new ( ) ;
2552- private StreamNameValueEntryProcessor ( ) { }
2549+ private StreamNameValueEntryProcessor ( )
2550+ {
2551+ }
2552+
25532553 protected override NameValueEntry Parse ( in RawResult first , in RawResult second , object ? state )
25542554 => new NameValueEntry ( first . AsRedisValue ( ) , second . AsRedisValue ( ) ) ;
25552555 }
0 commit comments