Skip to content

Commit 7f4e5ba

Browse files
committed
Code cleanup.
1 parent e9ff9af commit 7f4e5ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/MsgPack/Serialization/SerializationTarget.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ public static SerializationTarget Prepare( SerializationContext context, Type ta
164164
throw new SerializationException( String.Format( CultureInfo.CurrentCulture, "Cannot serialize type '{0}' because it does not have any serializable fields nor properties.", targetType ) );
165165
}
166166

167-
bool? canDeserialize = null;
168167
var memberCandidates = getters.Where( entry => CheckTargetEligibility( entry.Member ) ).ToArray();
168+
bool? canDeserialize;
169169

170170
if ( memberCandidates.Length == 0 )
171171
{
@@ -484,7 +484,7 @@ private static IList<ConstructorInfo> FindExplicitDeserializationConstructors( I
484484

485485
private static SerializationException NewTypeCannotBeSerializedException( Type targetType )
486486
{
487-
return
487+
return
488488
new SerializationException(
489489
String.Format(
490490
CultureInfo.CurrentCulture,

0 commit comments

Comments
 (0)