🎨 When local.json is corrupted, clear the file to avoid being unable to enter the main interface Fix https://github.com/siyuan-note/siyuan/issues/7911

This commit is contained in:
Liang Ding 2023-04-07 09:35:10 +08:00
parent 95ac0e828b
commit ae4717710d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 6 additions and 18 deletions

View file

@ -177,11 +177,6 @@ func getLocalStorage(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
data, err := model.GetLocalStorage()
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
return
}
data := model.GetLocalStorage()
ret.Data = data
}