Stylecop fixes

This commit is contained in:
harshgMSFT 2014-08-01 14:21:00 -07:00
parent 19f3f78b3e
commit 11d6c507f9
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ namespace Microsoft.AspNet.Mvc
{ {
// Ignore the passed in content type, if the object is string // Ignore the passed in content type, if the object is string
// always return it as a text/plain format. // always return it as a text/plain format.
if(context.DeclaredType == typeof(string)) if (context.DeclaredType == typeof(string))
{ {
return true; return true;
} }

View File

@ -34,8 +34,8 @@ namespace Microsoft.AspNet.Mvc
// Set up default output formatters. // Set up default output formatters.
options.OutputFormatters.Add(new TextPlainFormatter()); options.OutputFormatters.Add(new TextPlainFormatter());
options.OutputFormatters.Add(new JsonOutputFormatter(JsonOutputFormatter.CreateDefaultSettings(), options.OutputFormatters.Add(new JsonOutputFormatter(JsonOutputFormatter.CreateDefaultSettings(),
indent: false)); indent: false));
// Set up ValueProviders // Set up ValueProviders
options.ValueProviderFactories.Add(new RouteValueValueProviderFactory()); options.ValueProviderFactories.Add(new RouteValueValueProviderFactory());