From 73ba77af8e8164cf7a50b8a9ea284d341145a230 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 13 Dec 2007 23:21:34 +0000 Subject: [PATCH] Boolean reduction. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4907 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/Assert.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/util/Assert.as b/src/as/com/threerings/util/Assert.as index 6506d286a..b4cceb0f9 100644 --- a/src/as/com/threerings/util/Assert.as +++ b/src/as/com/threerings/util/Assert.as @@ -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); } }