Skip to content

Commit 5dceb78

Browse files
committed
wrap fallback in parens
1 parent d5c8bfa commit 5dceb78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/base/src/widget.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,8 @@ export class WidgetModel extends Backbone.Model {
524524
* binary array buffers.
525525
*/
526526
serialize(state: Dict<any>): JSONObject {
527-
const deepcopy =
528-
globalThis.structuredClone || (x: any) => JSON.parse(JSON.stringify(x));
527+
const deepcopy =
528+
globalThis.structuredClone || ((x: any) => JSON.parse(JSON.stringify(x)));
529529
const serializers =
530530
(this.constructor as typeof WidgetModel).serializers || {};
531531
for (const k of Object.keys(state)) {

0 commit comments

Comments
 (0)