1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-25 22:46:31 -04:00
This commit is contained in:
Qstick
2021-08-03 00:43:28 -04:00
committed by Mark McDowall
parent 878d1561aa
commit 1c22a1ec0d
1201 changed files with 5620 additions and 4303 deletions
@@ -1,8 +1,8 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Collections.Specialized;
using System.Linq;
namespace NzbDrone.Common.OAuth
{
@@ -15,13 +15,13 @@ namespace NzbDrone.Common.OAuth
get
{
var parameters = this.Where(p => p.Name.Equals(name));
if(parameters.Count() == 0)
if (parameters.Count() == 0)
{
return null;
}
if(parameters.Count() == 1)
if (parameters.Count() == 1)
{
return parameters.Single();
}
@@ -47,7 +47,8 @@ namespace NzbDrone.Common.OAuth
}
#if !WINRT
public WebParameterCollection(NameValueCollection collection) : this()
public WebParameterCollection(NameValueCollection collection)
: this()
{
AddCollection(collection);
}
@@ -67,7 +68,8 @@ namespace NzbDrone.Common.OAuth
}
#endif
public WebParameterCollection(IDictionary<string, string> collection) : this()
public WebParameterCollection(IDictionary<string, string> collection)
: this()
{
AddCollection(collection);
}
@@ -128,8 +130,6 @@ namespace NzbDrone.Common.OAuth
_parameters.Add(pair);
}
#region IList<WebParameter> Members
public virtual IEnumerator<WebParameter> GetEnumerator()
{
return _parameters.GetEnumerator();
@@ -142,7 +142,6 @@ namespace NzbDrone.Common.OAuth
public virtual void Add(WebParameter parameter)
{
_parameters.Add(parameter);
}
@@ -196,7 +195,5 @@ namespace NzbDrone.Common.OAuth
get { return _parameters[index]; }
set { _parameters[index] = value; }
}
#endregion
}
}
}