Skip to content

Commit

Permalink
Simplify a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
blowfishpro committed Oct 22, 2018
1 parent 02bd581 commit 9d37955
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ModuleManager/PatchExtractor.cs
Expand Up @@ -118,7 +118,6 @@ public static PatchList SortAndExtractPatches(UrlDir databaseRoot, IEnumerable<s

Match theMatch = null;
List<Patch> thePass = null;
bool modNotFound = false;

if (firstMatch.Success)
{
Expand All @@ -139,8 +138,8 @@ public static PatchList SortAndExtractPatches(UrlDir databaseRoot, IEnumerable<s
}
else
{
modNotFound = true;
progress.NeedsUnsatisfiedBefore(url);
continue;
}
}
else if (forMatch.Success)
Expand All @@ -152,8 +151,8 @@ public static PatchList SortAndExtractPatches(UrlDir databaseRoot, IEnumerable<s
}
else
{
modNotFound = true;
progress.NeedsUnsatisfiedFor(url);
continue;
}
}
else if (afterMatch.Success)
Expand All @@ -165,17 +164,15 @@ public static PatchList SortAndExtractPatches(UrlDir databaseRoot, IEnumerable<s
}
else
{
modNotFound = true;
progress.NeedsUnsatisfiedAfter(url);
continue;
}
}
else
{
thePass = list.legacyPatches;
}

if (modNotFound) continue;

string newName;
if (theMatch == null)
newName = name;
Expand Down

0 comments on commit 9d37955

Please sign in to comment.