Some refactoring after Steves comments

This commit is contained in:
ismailgulek
2020-07-22 17:07:54 +03:00
parent 984f4c78fe
commit 23e9b3c0ab
4 changed files with 41 additions and 20 deletions
@@ -21,7 +21,7 @@ class MemoryStore: KeyValueStore {
private var map: Dictionary<KeyValueStoreKey, Any> = [:]
func setObject(forKey key: KeyValueStoreKey, value: Any?) {
func set(_ value: Any?, forKey key: KeyValueStoreKey) {
if let value = value {
map[key] = value
} else {
@@ -29,7 +29,7 @@ class MemoryStore: KeyValueStore {
}
}
func getObject(forKey key: KeyValueStoreKey) -> Any? {
func object(forKey key: KeyValueStoreKey) -> Any? {
return map[key]
}