Skip to content

Commit 9343188

Browse files
committed
fix formatting
1 parent 93a6753 commit 9343188

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -992,11 +992,11 @@ function get_parent_context(component_context) {
992992
export function update(signal, d = 1) {
993993
var value = get(signal);
994994

995-
if(typeof value === "bigint") {
995+
if (typeof value === 'bigint') {
996996
//@ts-ignore
997997
set(signal, value + BigInt(d));
998998
return value;
999-
}else {
999+
} else {
10001000
//@ts-ignore
10011001
set(signal, +value + d);
10021002
//@ts-ignore
@@ -1012,11 +1012,11 @@ export function update(signal, d = 1) {
10121012
*/
10131013
export function update_pre(signal, d = 1) {
10141014
var value = get(signal);
1015-
1016-
if(typeof value === "bigint") {
1015+
1016+
if (typeof value === 'bigint') {
10171017
//@ts-ignore
10181018
return set(signal, value + BigInt(d));
1019-
}else{
1019+
} else {
10201020
//@ts-ignore
10211021
return set(signal, +value + d);
10221022
}

packages/svelte/tests/signals/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,6 @@ describe('signals', () => {
779779
assert.equal($.get(count), 1n);
780780
assert.doesNotThrow(() => $.update_pre(count, -1));
781781
assert.equal($.get(count), 0n);
782-
}
783-
})
782+
};
783+
});
784784
});

0 commit comments

Comments
 (0)