From c995d60d37032db3198b8496e186aa7a892dc7a8 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 14 May 2008 05:11:23 +0000 Subject: Formatting cleanup. --- OpenSim/Tests/Common/DoubleToleranceConstraint.cs | 4 ++-- OpenSim/Tests/Common/VectorToleranceConstraint.cs | 11 +++-------- 2 files changed, 5 insertions(+), 10 deletions(-) (limited to 'OpenSim/Tests/Common') diff --git a/OpenSim/Tests/Common/DoubleToleranceConstraint.cs b/OpenSim/Tests/Common/DoubleToleranceConstraint.cs index 3363c54..a766549 100644 --- a/OpenSim/Tests/Common/DoubleToleranceConstraint.cs +++ b/OpenSim/Tests/Common/DoubleToleranceConstraint.cs @@ -53,14 +53,14 @@ namespace OpenSim.Tests.Common { throw new ArgumentException("Constraint cannot be used upon null values."); } - if( valueToBeTested.GetType() != typeof(double)) + if (valueToBeTested.GetType() != typeof(double)) { throw new ArgumentException("Constraint cannot be used upon non double-values."); } _valueToBeTested = (double)valueToBeTested; - return IsWithinDoubleConstraint(_valueToBeTested, _baseValue ); + return IsWithinDoubleConstraint(_valueToBeTested, _baseValue); } public override void WriteDescriptionTo(MessageWriter writer) diff --git a/OpenSim/Tests/Common/VectorToleranceConstraint.cs b/OpenSim/Tests/Common/VectorToleranceConstraint.cs index cc96615..2b60db3 100644 --- a/OpenSim/Tests/Common/VectorToleranceConstraint.cs +++ b/OpenSim/Tests/Common/VectorToleranceConstraint.cs @@ -61,14 +61,9 @@ namespace OpenSim.Tests.Common _valueToBeTested = (LLVector3) valueToBeTested; - if ( IsWithinDoubleConstraint(_valueToBeTested.X,_baseValue.X) && - IsWithinDoubleConstraint(_valueToBeTested.Y,_baseValue.Y) && - IsWithinDoubleConstraint(_valueToBeTested.Z,_baseValue.Z) ) - { - return true; - } - - return false; + return (IsWithinDoubleConstraint(_valueToBeTested.X, _baseValue.X) && + IsWithinDoubleConstraint(_valueToBeTested.Y, _baseValue.Y) && + IsWithinDoubleConstraint(_valueToBeTested.Z, _baseValue.Z)); } public override void WriteDescriptionTo(MessageWriter writer) -- cgit v1.1