Boolean reduction.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4907 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2007-12-13 23:21:34 +00:00
parent 4a86621196
commit 73ba77af8e
+2 -2
View File
@@ -45,7 +45,7 @@ public class Assert
/** Asserts that the value is equal to null. */
public static function isNull (value :Object, message :String = null) :void
{
if (_debug && ! (value == null)) {
if (_debug && (value != null)) {
fail(message);
}
}
@@ -53,7 +53,7 @@ public class Assert
/** Asserts that the value is not equal to null. */
public static function isNotNull (value :Object, message :String = null) :void
{
if (_debug && ! (value != null)) {
if (_debug && (value == null)) {
fail(message);
}
}