Merge branch 'master' of github.com:named-data/ndn-js
diff --git a/js/NDN.js b/js/NDN.js
index a6cbd32..f6d51a2 100644
--- a/js/NDN.js
+++ b/js/NDN.js
@@ -136,7 +136,7 @@
 
 function getEntryForRegisteredPrefix(name) {
 	for (var i = 0; i < NDN.CSTable.length; i++) {
-		if (NDN.CSTable[i].name.match(name) != null)
+		if (NDN.CSTable[i].name.match(name))
 			return NDN.CSTable[i];
 	}
 	return null;