From 364f25e22a739c29f0997d2d2d1e59f8fed21764 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 28 Mar 2019 14:09:33 -0400 Subject: [PATCH] fixes to PreferencesStorageService --- src/Core/Services/PreferencesStorageService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/Services/PreferencesStorageService.cs b/src/Core/Services/PreferencesStorageService.cs index 0fc5a7682..220eeb1a5 100644 --- a/src/Core/Services/PreferencesStorageService.cs +++ b/src/Core/Services/PreferencesStorageService.cs @@ -6,7 +6,7 @@ namespace Bit.Core.Services { public class PreferencesStorageService : IStorageService { - private string _keyFormat = "bwPref:{0}"; + private string _keyFormat = "bwPreferencesStorage:{0}"; public Task GetAsync(string key) { @@ -50,12 +50,12 @@ namespace Bit.Core.Services public Task SaveAsync(string key, T obj) { - var formattedKey = string.Format(_keyFormat, key); if(obj == null) { - return RemoveAsync(formattedKey); + return RemoveAsync(key); } + var formattedKey = string.Format(_keyFormat, key); var objType = typeof(T); if(objType == typeof(string)) {