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:
Tim Abbott 2023-04-24 13:23:56 -07:00
parent 5e8e7af066
commit 28f86057d6
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ const ls = {
const old = this.getData(v1, name);
this.removeData(v1, name);
if (old && old.__valid) {
if (old?.__valid) {
const data = callback(old.data);
this.setData(v2, name, data, Number.POSITIVE_INFINITY);