Skip to content

Commit

Permalink
Remove unreachable call
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed May 3, 2024
1 parent 488e251 commit 54092d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ private static Exception ConvertOrWidenPrimitivesEnumsAndPointersIfPossible(obje
Failure:
Debug.Fail("Unexpected CorElementType: " + dstElementType + ": Not a valid widening target.");
dstObject = null;
return CreateChangeTypeException(srcEEType, dstEEType, semantics);
return null; // This code can never be reached
}

private static bool CanPrimitiveWiden(EETypeElementType destType, EETypeElementType srcType)
Expand Down

0 comments on commit 54092d4

Please sign in to comment.