mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 02:22:44 +02:00
Some refactoring after Steves comments
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user