Skip to content

Commit b68be21

Browse files
committed
simplify
1 parent e554404 commit b68be21

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/svelte/src/compiler/state.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,9 @@ export let locator = getLocator('', { offsetLine: 1 });
1515
* source: string;
1616
* filename: string | undefined;
1717
* }} options
18-
* @returns {{ warnings: import('#compiler').Warning[] }}
1918
*/
2019
export function reset(options) {
2120
filename = options.filename;
2221
locator = getLocator(options.source, { offsetLine: 1 });
23-
24-
return {
25-
warnings: (warnings = [])
26-
};
22+
warnings = [];
2723
}

0 commit comments

Comments
 (0)