aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/History.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-03-01 19:59:47 -0500
committerbobzel <zzzman@gmail.com>2022-03-01 19:59:47 -0500
commit35f0c9940d0ea7c0cb37c711557454b77ac038ad (patch)
tree6487e8217e768705020916e85a3f236b493f3699 /src/client/util/History.ts
parent0b9e28a92487dc3a69519877d92235fca02b1b8c (diff)
updated to webpack 5
Diffstat (limited to 'src/client/util/History.ts')
-rw-r--r--src/client/util/History.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/util/History.ts b/src/client/util/History.ts
index cbe36b401..e6f75a7db 100644
--- a/src/client/util/History.ts
+++ b/src/client/util/History.ts
@@ -103,8 +103,7 @@ export namespace HistoryUtil {
return undefined;
}
const parser = requiredFields[required];
- let value = opts[required];
- value = parse(parser, value);
+ const value = parse(parser, opts[required]);
if (value !== null && value !== undefined) {
current[required] = value;
}
@@ -114,8 +113,7 @@ export namespace HistoryUtil {
continue;
}
const parser = optionalFields[opt];
- let value = opts[opt];
- value = parse(parser, value);
+ const value = parse(parser, opts[opt]);
if (value !== undefined) {
current[opt] = value;
}