From 120218a3cc6a3185b4d178657b1e93bbe2f9a89e Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 21 Jul 2023 14:02:20 +0800 Subject: [PATCH] Use more informative NSAssert rather than assert for _registeredDirectories Signed-off-by: Claudio Cambra --- .../MacOSX/NextcloudIntegration/FinderSyncExt/FinderSync.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSync.m b/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSync.m index 5986da0790910..9d2c3a015c880 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSync.m +++ b/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSync.m @@ -207,7 +207,7 @@ - (void)reFetchFileNameCacheForPath:(NSString*)path - (void)registerPath:(NSString*)path { - assert(_registeredDirectories); + NSAssert(_registeredDirectories, @"Registered directories should be a valid set!"); [_registeredDirectories addObject:[NSURL fileURLWithPath:path]]; [FIFinderSyncController defaultController].directoryURLs = _registeredDirectories; }