mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
Don't cache empty default prefs
This commit is contained in:
parent
d7e0fa6059
commit
f1d566fff6
1 changed files with 0 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue