mirror of https://github.com/zulip/zulip.git
lint: Fix TypeScript linter error in localstorage.ts.
This was introduced because the PR converting this file to TypeScript predated this linter rule being enabled.
This commit is contained in:
parent
5e8e7af066
commit
28f86057d6
|
@ -140,7 +140,7 @@ const ls = {
|
||||||
const old = this.getData(v1, name);
|
const old = this.getData(v1, name);
|
||||||
this.removeData(v1, name);
|
this.removeData(v1, name);
|
||||||
|
|
||||||
if (old && old.__valid) {
|
if (old?.__valid) {
|
||||||
const data = callback(old.data);
|
const data = callback(old.data);
|
||||||
this.setData(v2, name, data, Number.POSITIVE_INFINITY);
|
this.setData(v2, name, data, Number.POSITIVE_INFINITY);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue