mirror of https://github.com/status-im/codimd.git
refactor: fix lint on lib/history.js
Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
parent
e2a13b05b1
commit
ac6a605cd9
|
@ -41,7 +41,7 @@ function getHistory (userid, callback) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let id = LZString.decompressFromBase64(history[i].id)
|
const id = LZString.decompressFromBase64(history[i].id)
|
||||||
if (id && models.Note.checkNoteIdValid(id)) {
|
if (id && models.Note.checkNoteIdValid(id)) {
|
||||||
history[i].id = models.Note.encodeNoteId(id)
|
history[i].id = models.Note.encodeNoteId(id)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue