Skip to content

Commit

Permalink
Turned the GfyAdjectives and GfyAnimals collections into generic list…
Browse files Browse the repository at this point in the history
…s because we don't need hashes
  • Loading branch information
ObsidianMinor committed Apr 18, 2017
1 parent 2bdcfa3 commit 6050d80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Gfycat.Net/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ internal static void MarshalTaskResults<TResult>(Task source, TaskCompletionSour
{ ReactionLanguage.HanChinese, "zh-Ha" }
};

internal static bool HasPartial(string value, HashSet<string> possibleValues, ref string match)
internal static bool HasPartial(string value, IEnumerable<string> possibleValues, ref string match)
{
int index = 0;
string current = "";
Expand All @@ -158,7 +158,7 @@ internal static bool HasPartial(string value, HashSet<string> possibleValues, re

internal static readonly int GfyFinalSegmentMaxLength;

internal static readonly HashSet<string> GfyAdjectives = new HashSet<string>
internal static readonly IEnumerable<string> GfyAdjectives = new List<string>
{
"abandoned",
"able",
Expand Down Expand Up @@ -1663,7 +1663,7 @@ internal static bool HasPartial(string value, HashSet<string> possibleValues, re
"yellowgreen",
};

internal static readonly HashSet<string> GfyAnimals = new HashSet<string>
internal static readonly IEnumerable<string> GfyAnimals = new List<string>
{
"aardvark",
"aardwolf",
Expand Down

0 comments on commit 6050d80

Please sign in to comment.