Skip to content

Commit 485a1af

Browse files
committed
lint
1 parent fbf8a13 commit 485a1af

File tree

1 file changed

+11
-4
lines changed
  • packages/svelte/src/internal/shared

1 file changed

+11
-4
lines changed

packages/svelte/src/internal/shared/clone.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const empty = [];
1515
* @template T
1616
* @param {T} value
1717
* @param {boolean} [skip_warning]
18-
* @param {boolean} [no_tojson]
18+
* @param {boolean} [no_tojson]
1919
* @returns {Snapshot<T>}
2020
*/
2121
export function snapshot(value, skip_warning = false, no_tojson = false) {
@@ -51,7 +51,7 @@ export function snapshot(value, skip_warning = false, no_tojson = false) {
5151
* @param {string} path
5252
* @param {string[]} paths
5353
* @param {null | T} [original] The original value, if `value` was produced from a `toJSON` call
54-
* @param {boolean} [no_tojson]
54+
* @param {boolean} [no_tojson]
5555
* @returns {Snapshot<T>}
5656
*/
5757
function clone(value, cloned, path, paths, original = null, no_tojson = false) {
@@ -90,8 +90,15 @@ function clone(value, cloned, path, paths, original = null, no_tojson = false) {
9090
}
9191

9292
for (var key in value) {
93-
// @ts-expect-error
94-
copy[key] = clone(value[key], cloned, DEV ? `${path}.${key}` : path, paths, null, no_tojson);
93+
copy[key] = clone(
94+
// @ts-expect-error
95+
value[key],
96+
cloned,
97+
DEV ? `${path}.${key}` : path,
98+
paths,
99+
null,
100+
no_tojson
101+
);
95102
}
96103

97104
return copy;

0 commit comments

Comments
 (0)