소스 검색

Don't stomp stack on exception re-throw

Brad Robinson 8 년 전
부모
커밋
549016eb26
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      PetaJson.cs

+ 2 - 2
PetaJson.cs

@@ -898,11 +898,11 @@ namespace PetaJson
 							{
 								return Enum.Parse(type, (string)literal);
 							}
-							catch (Exception x)
+							catch (Exception)
 							{
 								var attr = type.GetCustomAttributes(typeof(JsonUnknownAttribute), false).FirstOrDefault();
 								if (attr==null)
-									throw x;
+									throw;
 
 								return ((JsonUnknownAttribute)attr).UnknownValue;
 							}