Revision: 29877
          http://sourceforge.net/p/bibdesk/svn/29877
Author:   hofman
Date:     2025-11-22 16:51:13 +0000 (Sat, 22 Nov 2025)
Log Message:
-----------
no need for try block and local variable

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

Modified: trunk/bibdesk/BDSKGroupsArray.m
===================================================================
--- trunk/bibdesk/BDSKGroupsArray.m     2025-11-22 16:41:19 UTC (rev 29876)
+++ trunk/bibdesk/BDSKGroupsArray.m     2025-11-22 16:51:13 UTC (rev 29877)
@@ -273,19 +273,11 @@
     }
     
     if (groupClass) {
-        id group = nil;
-        
         for (NSDictionary *groupDict in plist) {
-            @try {
-                group = [[groupClass alloc] initWithDictionary:groupDict];
-                [parent addChildGroup:group];
-            }
-            @catch(id exception) {
-                NSLog(@"Ignoring exception \"%@\" while parsing group data.", 
exception);
-            }
-            @finally {
-                group = nil;
-            }
+            if ([groupDict isKindOfClass:[NSDictionary class]])
+                [parent addChildGroup:[[groupClass alloc] 
initWithDictionary:groupDict]];
+            else
+                NSLog(@"Serialized group was no dictionary.");
         }
     }
 }

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