Revision: 22516
          http://sourceforge.net/p/bibdesk/svn/22516
Author:   hofman
Date:     2018-08-23 13:51:12 +0000 (Thu, 23 Aug 2018)
Log Message:
-----------
no need to check for nil

Modified Paths:
--------------
    trunk/bibdesk/DOMNode_BDSKExtensions.m

Modified: trunk/bibdesk/DOMNode_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/DOMNode_BDSKExtensions.m      2018-08-23 13:46:51 UTC (rev 
22515)
+++ trunk/bibdesk/DOMNode_BDSKExtensions.m      2018-08-23 13:51:12 UTC (rev 
22516)
@@ -62,9 +62,6 @@
 }
 
 - (NSArray *)nodesForXPathExpression:(DOMXPathExpression *)xpathExpression {
-    if (xpathExpression == nil)
-        return nil;
-    
     DOMXPathResult *result = [xpathExpression evaluate:self 
type:DOM_ORDERED_NODE_ITERATOR_TYPE inResult:nil];
     DOMNode *node = [result iterateNext];
     NSMutableArray *nodes = nil;
@@ -80,9 +77,6 @@
 }
 
 - (DOMNode *)singleNodeForXPathExpression:(DOMXPathExpression 
*)xpathExpression {
-    if (xpathExpression == nil)
-        return nil;
-    
     DOMXPathResult *result = [xpathExpression evaluate:self 
type:DOM_FIRST_ORDERED_NODE_TYPE inResult:nil];
     return [result singleNodeValue];
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to