Revision: 29043
          http://sourceforge.net/p/bibdesk/svn/29043
Author:   hofman
Date:     2025-02-22 16:35:44 +0000 (Sat, 22 Feb 2025)
Log Message:
-----------
use elvis operator

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

Modified: trunk/bibdesk/BibDocument_Groups.m
===================================================================
--- trunk/bibdesk/BibDocument_Groups.m  2025-02-22 16:11:11 UTC (rev 29042)
+++ trunk/bibdesk/BibDocument_Groups.m  2025-02-22 16:35:44 UTC (rev 29043)
@@ -511,9 +511,7 @@
     // add the "empty" group at index 0; this is a group of pubs whose value 
is empty for this field, so they
     // will not be contained in any of the other groups for the currently 
selected group field (hence multiple selection is desirable)
     if (emptyCount > 0) {
-        group = oldEmptyGroup;
-        if (group == nil)
-            group = [[BDSKEmptyGroup alloc] initWithName:(isPersonField ? 
[BibAuthor emptyAuthor] : @"") key:groupField];
+        group = oldEmptyGroup ?: [[BDSKEmptyGroup alloc] 
initWithName:(isPersonField ? [BibAuthor emptyAuthor] : @"") key:groupField];
         [group setCount:emptyCount];
         [mutableGroups insertObject:group atIndex:0];
     }

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to