Skip to content

Commit 77f6d87

Browse files
fix: Return Empty Result (#21)
On iOS, When there are no keys associated with a store, return empty string instead of `nil`.
1 parent ca55495 commit 77f6d87

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Changelog
44
Unreleased
55
------------------
66

7+
- Fix: [iOS] When there are no keys associated with a store, return empty string instead of `nil`.
8+
79
2.6.8-OS14 - 2022-11-09
810
------------------
911

src/ios/SecureStorage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ extension SecureStorage: PlatformProtocol {
132132
]
133133
pluginResult = CDVPluginResult(status: CDVCommandStatus_ERROR, messageAs: errorDict);
134134
} else if let result = result {
135-
pluginResult = result.isEmpty ? CDVPluginResult(status: CDVCommandStatus_OK) : CDVPluginResult(status: CDVCommandStatus_OK, messageAs: result)
135+
pluginResult = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: result)
136136
}
137137

138138
self.commandDelegate.send(pluginResult, callbackId: callBackID);

0 commit comments

Comments
 (0)