diff --git a/Octokit/Helpers/WebHookConfigComparer.cs b/Octokit/Helpers/WebHookConfigComparer.cs new file mode 100644 index 0000000000..4c71681554 --- /dev/null +++ b/Octokit/Helpers/WebHookConfigComparer.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; + +namespace Octokit +{ + public class WebHookConfigComparer : IEqualityComparer> + { + public bool Equals(KeyValuePair x, KeyValuePair y) + { + return x.Key == y.Key; + } + + public int GetHashCode(KeyValuePair obj) + { + return obj.Key.GetHashCode(); + } + } +} diff --git a/Octokit/Models/Request/NewRepositoryWebHook.cs b/Octokit/Models/Request/NewRepositoryWebHook.cs index 3be98b99d5..36d0183296 100644 --- a/Octokit/Models/Request/NewRepositoryWebHook.cs +++ b/Octokit/Models/Request/NewRepositoryWebHook.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics; using System.Linq; @@ -145,16 +144,4 @@ public enum WebHookContentType Json } - public class WebHookConfigComparer : IEqualityComparer> - { - public bool Equals(KeyValuePair x, KeyValuePair y) - { - return x.Key == y.Key; - } - - public int GetHashCode(KeyValuePair obj) - { - return obj.Key.GetHashCode(); - } - } } diff --git a/Octokit/Octokit-Mono.csproj b/Octokit/Octokit-Mono.csproj index 4134099d3d..fd3d9f2c6e 100644 --- a/Octokit/Octokit-Mono.csproj +++ b/Octokit/Octokit-Mono.csproj @@ -408,6 +408,7 @@ + \ No newline at end of file diff --git a/Octokit/Octokit-MonoAndroid.csproj b/Octokit/Octokit-MonoAndroid.csproj index 65b473d778..7a813d2cef 100644 --- a/Octokit/Octokit-MonoAndroid.csproj +++ b/Octokit/Octokit-MonoAndroid.csproj @@ -415,6 +415,7 @@ + diff --git a/Octokit/Octokit-Monotouch.csproj b/Octokit/Octokit-Monotouch.csproj index 9f7378397f..5eb79ac2e6 100644 --- a/Octokit/Octokit-Monotouch.csproj +++ b/Octokit/Octokit-Monotouch.csproj @@ -411,6 +411,7 @@ + diff --git a/Octokit/Octokit-Portable.csproj b/Octokit/Octokit-Portable.csproj index 61de2d7b54..6757e1a656 100644 --- a/Octokit/Octokit-Portable.csproj +++ b/Octokit/Octokit-Portable.csproj @@ -405,6 +405,7 @@ + diff --git a/Octokit/Octokit-netcore45.csproj b/Octokit/Octokit-netcore45.csproj index cc584a7dd1..d6a2fd84af 100644 --- a/Octokit/Octokit-netcore45.csproj +++ b/Octokit/Octokit-netcore45.csproj @@ -412,6 +412,7 @@ + diff --git a/Octokit/Octokit.csproj b/Octokit/Octokit.csproj index c0edf9d44a..2c15e7535d 100644 --- a/Octokit/Octokit.csproj +++ b/Octokit/Octokit.csproj @@ -85,6 +85,7 @@ +