Revision: 27594
http://sourceforge.net/p/bibdesk/svn/27594
Author: hofman
Date: 2022-06-09 14:14:38 +0000 (Thu, 09 Jun 2022)
Log Message:
-----------
no early return
Modified Paths:
--------------
trunk/bibdesk/BDSKFieldCollection.m
Modified: trunk/bibdesk/BDSKFieldCollection.m
===================================================================
--- trunk/bibdesk/BDSKFieldCollection.m 2022-06-09 14:11:45 UTC (rev 27593)
+++ trunk/bibdesk/BDSKFieldCollection.m 2022-06-09 14:14:38 UTC (rev 27594)
@@ -76,12 +76,12 @@
value = (id)[item groupArrayForField:key];
} else if (type == BDSKURLTypeFieldCollection) {
value = (id)[item URLForField:key];
- if (value == nil)
- return [NSString isEmptyString:[item stringValueOfField:key]]
? nil : @"";
- else if ([value isFile])
- return [[NSWorkspace sharedWorkspace] typeOfFile:[value path]
error:NULL];
- else
- return [NSString stringWithFormat:@"%@ %@", [value scheme],
[value pathExtension] ?: @""];
+ if ([value isFile])
+ value = [[NSWorkspace sharedWorkspace] typeOfFile:[value path]
error:NULL];
+ else if (value)
+ value = [NSString stringWithFormat:@"%@ %@", [value scheme],
[value pathExtension] ?: @""];
+ else if ([NSString isEmptyString:[item stringValueOfField:key]] ==
NO)
+ value = @"";
} else {
value = (id)[item stringValueOfField:key];
if ([key isURLField] == NO && [key isBooleanField] == NO && [key
isTriStateField] == NO && [key isRatingField] == NO && [key isCitationField] ==
NO)
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