Stylecop fixes
This commit is contained in:
parent
19f3f78b3e
commit
11d6c507f9
|
|
@ -28,7 +28,7 @@ namespace Microsoft.AspNet.Mvc
|
|||
{
|
||||
// Ignore the passed in content type, if the object is string
|
||||
// always return it as a text/plain format.
|
||||
if(context.DeclaredType == typeof(string))
|
||||
if (context.DeclaredType == typeof(string))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ namespace Microsoft.AspNet.Mvc
|
|||
|
||||
// Set up default output formatters.
|
||||
options.OutputFormatters.Add(new TextPlainFormatter());
|
||||
options.OutputFormatters.Add(new JsonOutputFormatter(JsonOutputFormatter.CreateDefaultSettings(),
|
||||
indent: false));
|
||||
options.OutputFormatters.Add(new JsonOutputFormatter(JsonOutputFormatter.CreateDefaultSettings(),
|
||||
indent: false));
|
||||
|
||||
// Set up ValueProviders
|
||||
options.ValueProviderFactories.Add(new RouteValueValueProviderFactory());
|
||||
|
|
|
|||
Loading…
Reference in New Issue