Skip to content

Commit

Permalink
[Darwin] Invert the logic for getting the path to use for the KVS as …
Browse files Browse the repository at this point in the history
…it was inverted by mistake in #15586 (#15676)
  • Loading branch information
vivien-apple authored Mar 2, 2022
1 parent cd44d83 commit c3a34eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/Darwin/KeyValueStoreManagerImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ - (instancetype)initWithContext:(nonnull NSManagedObjectContext *)context key:(n
ReturnErrorCodeIf(filepath == nil, CHIP_ERROR_INVALID_ARGUMENT);

// relative paths are relative to Documents folder
if ([filepath hasPrefix:@"/"]) {
if (![filepath hasPrefix:@"/"]) {
NSURL * documentsDirectory = [NSFileManager.defaultManager URLForDirectory:NSDocumentDirectory
inDomain:NSUserDomainMask
appropriateForURL:nil
Expand Down

0 comments on commit c3a34eb

Please sign in to comment.