Boolean reduction.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4907 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -45,7 +45,7 @@ public class Assert
|
|||||||
/** Asserts that the value is equal to null. */
|
/** Asserts that the value is equal to null. */
|
||||||
public static function isNull (value :Object, message :String = null) :void
|
public static function isNull (value :Object, message :String = null) :void
|
||||||
{
|
{
|
||||||
if (_debug && ! (value == null)) {
|
if (_debug && (value != null)) {
|
||||||
fail(message);
|
fail(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,7 @@ public class Assert
|
|||||||
/** Asserts that the value is not equal to null. */
|
/** Asserts that the value is not equal to null. */
|
||||||
public static function isNotNull (value :Object, message :String = null) :void
|
public static function isNotNull (value :Object, message :String = null) :void
|
||||||
{
|
{
|
||||||
if (_debug && ! (value != null)) {
|
if (_debug && (value == null)) {
|
||||||
fail(message);
|
fail(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user