Skip to content

Commit 35c5003

Browse files
committed
tweak
1 parent 84d7d74 commit 35c5003

File tree

1 file changed

+1
-4
lines changed
  • packages/svelte/src/internal/server

1 file changed

+1
-4
lines changed

packages/svelte/src/internal/server/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,7 @@ export function attr_class(value, hash, directives) {
300300
*/
301301
export function attr_style(value, directives) {
302302
var result = to_style(value, directives);
303-
if (result) {
304-
return ` style="${escape_html(result, true)}"`;
305-
}
306-
return '';
303+
return result ? ` style="${escape_html(result, true)}"` : '';
307304
}
308305

309306
/**

0 commit comments

Comments
 (0)