Revision: 16744
          http://sourceforge.net/p/skim-app/code/16744
Author:   hofman
Date:     2026-10-29 17:32:08 +0000 (Thu, 29 Oct 2026)
Log Message:
-----------
return bool

Modified Paths:
--------------
    trunk/SKAlias.m

Modified: trunk/SKAlias.m
===================================================================
--- trunk/SKAlias.m     2026-10-29 17:29:07 UTC (rev 16743)
+++ trunk/SKAlias.m     2026-10-29 17:32:08 UTC (rev 16744)
@@ -183,7 +183,7 @@
     if (aliasHandle) {
         NSURL *myFileURL = fileURLFromAliasHandle(aliasHandle, 
kResolveAliasFileNoUI);
         if (myFileURL == nil)
-            return nil;
+            return NO;
         [self updateWithURL:myFileURL];
         return [[myFileURL path] isCaseInsensitiveEqual:[fileURL path]];
     } else if (data) {
@@ -222,7 +222,9 @@
         NSURLBookmarkResolutionOptions options = 
NSURLBookmarkResolutionWithoutUI | NSURLBookmarkResolutionWithoutMounting;
         BOOL shouldUpdate = NO;
         NSURL *myFileURL = [NSURL URLByResolvingBookmarkData:data 
options:options relativeToURL:nil bookmarkDataIsStale:&shouldUpdate error:NULL];
-        if (shouldUpdate && myFileURL)
+        if (myFileURL == nil)
+            return NO;
+        if (shouldUpdate)
             [self updateWithURL:myFileURL];
         return [[myFileURL path] isCaseInsensitiveEqual:(path ?: [fileURL 
path])];
     }

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to