mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 17:44:15 +01:00
fix compiler error
This commit is contained in:
parent
c5b0f6146e
commit
42c6bf0b7f
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ public partial class MareHub
|
||||||
{
|
{
|
||||||
var invalidPaths = replacement.GamePaths.Where(p => !GamePathRegex().IsMatch(p)).ToArray();
|
var invalidPaths = replacement.GamePaths.Where(p => !GamePathRegex().IsMatch(p)).ToArray();
|
||||||
replacement.GamePaths = replacement.GamePaths.Where(p => GamePathRegex().IsMatch(p)).ToArray();
|
replacement.GamePaths = replacement.GamePaths.Where(p => GamePathRegex().IsMatch(p)).ToArray();
|
||||||
validGamePaths = replacement.GamePaths.Any();
|
bool validGamePaths = replacement.GamePaths.Any();
|
||||||
bool validHash = string.IsNullOrEmpty(replacement.Hash) || HashRegex().IsMatch(replacement.Hash);
|
bool validHash = string.IsNullOrEmpty(replacement.Hash) || HashRegex().IsMatch(replacement.Hash);
|
||||||
bool validFileSwapPath = string.IsNullOrEmpty(replacement.FileSwapPath) || GamePathRegex().IsMatch(replacement.FileSwapPath);
|
bool validFileSwapPath = string.IsNullOrEmpty(replacement.FileSwapPath) || GamePathRegex().IsMatch(replacement.FileSwapPath);
|
||||||
if (!validGamePaths || !validHash || !validFileSwapPath)
|
if (!validGamePaths || !validHash || !validFileSwapPath)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue