From 52c7a94db3ff4af2bb2a6a25d5794fb807efe7da Mon Sep 17 00:00:00 2001 From: Pranav K Date: Tue, 9 Aug 2016 15:32:38 -0700 Subject: [PATCH] Don't use abbreviations --- .../Internal/UrlRewrite/UrlRewriteFileParser.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Microsoft.AspNetCore.Rewrite/Internal/UrlRewrite/UrlRewriteFileParser.cs b/src/Microsoft.AspNetCore.Rewrite/Internal/UrlRewrite/UrlRewriteFileParser.cs index b5acf1c00f..350e697b24 100644 --- a/src/Microsoft.AspNetCore.Rewrite/Internal/UrlRewrite/UrlRewriteFileParser.cs +++ b/src/Microsoft.AspNetCore.Rewrite/Internal/UrlRewrite/UrlRewriteFileParser.cs @@ -134,7 +134,6 @@ namespace Microsoft.AspNetCore.Rewrite.Internal.UrlRewrite } } - private static void CreateConditions(XElement conditions, UrlRewriteRule res) { // This is to avoid nullptr exception on referencing conditions. @@ -164,7 +163,6 @@ namespace Microsoft.AspNetCore.Rewrite.Internal.UrlRewrite private static void CreateCondition(XElement condition, UrlRewriteRule res) { - var parsedCondRes = new ParsedCondition(); bool parBool; @@ -195,9 +193,9 @@ namespace Microsoft.AspNetCore.Rewrite.Internal.UrlRewrite { input = InputParser.ParseInputString(parsedString); } - catch (FormatException fe) + catch (FormatException formatException) { - ThrowUrlFormatException(condition, fe.Message, fe); + ThrowUrlFormatException(condition, formatException.Message, formatException); } switch (res.PatternSyntax) @@ -293,9 +291,9 @@ namespace Microsoft.AspNetCore.Rewrite.Internal.UrlRewrite { actionRes.Url = InputParser.ParseInputString(urlAction.Attribute(RewriteTags.Url)?.Value); } - catch (FormatException fe) + catch (FormatException formatException) { - ThrowUrlFormatException(urlAction, fe.Message, fe); + ThrowUrlFormatException(urlAction, formatException.Message, formatException); } CreateUrlActionFromParsedAction(urlAction, actionRes, globalRule, res); @@ -351,4 +349,4 @@ namespace Microsoft.AspNetCore.Rewrite.Internal.UrlRewrite throw new FormatException(Resources.FormatError_UrlRewriteParseError(message, line, col), ex); } } -} \ No newline at end of file +}