Fix StyleCop issues
This commit is contained in:
parent
24f74222f5
commit
cd0285183e
|
|
@ -155,7 +155,7 @@ namespace Microsoft.AspNet.Mvc.HeaderValueAbstractions
|
||||||
|
|
||||||
// So far we either have a full match or a subset match. Now check that all of
|
// So far we either have a full match or a subset match. Now check that all of
|
||||||
// mediaType1's parameters are present and equal in mediatype2
|
// mediaType1's parameters are present and equal in mediatype2
|
||||||
if(!MatchParameters(Parameters, otherMediaType.Parameters))
|
if (!MatchParameters(Parameters, otherMediaType.Parameters))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace Microsoft.AspNet.Mvc.HeaderValueAbstractions
|
||||||
string qualityStringValue = null;
|
string qualityStringValue = null;
|
||||||
if (mediaTypeHeaderValue.Parameters.TryGetValue("q", out qualityStringValue))
|
if (mediaTypeHeaderValue.Parameters.TryGetValue("q", out qualityStringValue))
|
||||||
{
|
{
|
||||||
if(!Double.TryParse(qualityStringValue, out quality))
|
if (!Double.TryParse(qualityStringValue, out quality))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ namespace Microsoft.AspNet.Mvc.HeaderValueAbstractions
|
||||||
if (nameValuePair.Length > 1 && nameValuePair[0].Trim().Equals("q"))
|
if (nameValuePair.Length > 1 && nameValuePair[0].Trim().Equals("q"))
|
||||||
{
|
{
|
||||||
// TODO: all extraneous parameters are ignored. Throw/return null if that is the case.
|
// TODO: all extraneous parameters are ignored. Throw/return null if that is the case.
|
||||||
if(!Double.TryParse(nameValuePair[1].Trim(), out quality))
|
if (!Double.TryParse(nameValuePair[1].Trim(), out quality))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
using System.Collections.Generic;
|
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
||||||
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Mvc.ModelBinding
|
namespace Microsoft.AspNet.Mvc.ModelBinding
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue