Browse Source

Don't cache empty default prefs

Zed 7 năm trước cách đây
mục cha
commit
f1d566fff6
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      src/prefs.nim

+ 0 - 1
src/prefs.nim

@@ -39,7 +39,6 @@ proc getPrefs*(id: string): Prefs =
       result.getOne("id = ?", id)
     except KeyError:
       result = genDefaultPrefs()
-      cache(result)
 
 proc resetPrefs*(prefs: var Prefs) =
   var defPrefs = genDefaultPrefs()