mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
A bit of code cleanup
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
public class WebHookConfigComparer : IEqualityComparer<KeyValuePair<string, string>>
|
||||
{
|
||||
public bool Equals(KeyValuePair<string, string> x, KeyValuePair<string, string> y)
|
||||
{
|
||||
return x.Key == y.Key;
|
||||
}
|
||||
|
||||
public int GetHashCode(KeyValuePair<string, string> obj)
|
||||
{
|
||||
return obj.Key.GetHashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
||||
@@ -145,16 +144,4 @@ namespace Octokit
|
||||
Json
|
||||
}
|
||||
|
||||
public class WebHookConfigComparer : IEqualityComparer<KeyValuePair<string, string>>
|
||||
{
|
||||
public bool Equals(KeyValuePair<string, string> x, KeyValuePair<string, string> y)
|
||||
{
|
||||
return x.Key == y.Key;
|
||||
}
|
||||
|
||||
public int GetHashCode(KeyValuePair<string, string> obj)
|
||||
{
|
||||
return obj.Key.GetHashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -408,6 +408,7 @@
|
||||
<Compile Include="Exceptions\InvalidGitIgnoreTemplateException.cs" />
|
||||
<Compile Include="Models\Request\NewRepositoryWebHook.cs" />
|
||||
<Compile Include="Exceptions\RepositoryWebHookConfigException.cs" />
|
||||
<Compile Include="Helpers\WebHookConfigComparer.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -415,6 +415,7 @@
|
||||
<Compile Include="Exceptions\InvalidGitIgnoreTemplateException.cs" />
|
||||
<Compile Include="Models\Request\NewRepositoryWebHook.cs" />
|
||||
<Compile Include="Exceptions\RepositoryWebHookConfigException.cs" />
|
||||
<Compile Include="Helpers\WebHookConfigComparer.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
|
||||
</Project>
|
||||
|
||||
@@ -411,6 +411,7 @@
|
||||
<Compile Include="Exceptions\InvalidGitIgnoreTemplateException.cs" />
|
||||
<Compile Include="Models\Request\NewRepositoryWebHook.cs" />
|
||||
<Compile Include="Exceptions\RepositoryWebHookConfigException.cs" />
|
||||
<Compile Include="Helpers\WebHookConfigComparer.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
|
||||
@@ -405,6 +405,7 @@
|
||||
<Compile Include="Exceptions\InvalidGitIgnoreTemplateException.cs" />
|
||||
<Compile Include="Models\Request\NewRepositoryWebHook.cs" />
|
||||
<Compile Include="Exceptions\RepositoryWebHookConfigException.cs" />
|
||||
<Compile Include="Helpers\WebHookConfigComparer.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">
|
||||
|
||||
@@ -412,6 +412,7 @@
|
||||
<Compile Include="Exceptions\InvalidGitIgnoreTemplateException.cs" />
|
||||
<Compile Include="Models\Request\NewRepositoryWebHook.cs" />
|
||||
<Compile Include="Exceptions\RepositoryWebHookConfigException.cs" />
|
||||
<Compile Include="Helpers\WebHookConfigComparer.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">
|
||||
|
||||
@@ -85,6 +85,7 @@
|
||||
<Compile Include="Helpers\HttpClientExtensions.cs" />
|
||||
<Compile Include="Helpers\PropertyOrField.cs" />
|
||||
<Compile Include="Helpers\SerializeNullAttribute.cs" />
|
||||
<Compile Include="Helpers\WebHookConfigComparer.cs" />
|
||||
<Compile Include="Http\HttpMessageHandlerFactory.cs" />
|
||||
<Compile Include="Http\IApiInfoProvider.cs" />
|
||||
<Compile Include="Http\ProductHeaderValue.cs" />
|
||||
|
||||
Reference in New Issue
Block a user