More refactoring of code.
This commit is contained in:
@@ -54,15 +54,15 @@ namespace Game.Movement
|
||||
// Returns true to show that the arguments were configured correctly and MoveSpline initialization will succeed.
|
||||
public bool Validate(Unit unit)
|
||||
{
|
||||
Func<bool, bool> CHECK = exp =>
|
||||
bool CHECK(bool exp)
|
||||
{
|
||||
if (!(exp))
|
||||
if (!exp)
|
||||
{
|
||||
Log.outError(LogFilter.Misc, "MoveSplineInitArgs::Validate: expression '{0}' failed for {1} Entry: {2}", exp.ToString(), unit.GetGUID().ToString(), unit.GetEntry());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
if (!CHECK(path.Length > 1))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user