Skip to content

Commit 62d56b3

Browse files
committed
Use prettier for content.ts
1 parent b61fb07 commit 62d56b3

File tree

1 file changed

+13
-2
lines changed
  • packages/@glimmer/runtime/lib/compiled/opcodes

1 file changed

+13
-2
lines changed

packages/@glimmer/runtime/lib/compiled/opcodes/content.ts

+13-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ import { isObject } from '@glimmer/util';
1111
import { ContentType, CurriedType, Op } from '@glimmer/vm';
1212

1313
import { isCurriedType } from '../../curried-value';
14-
import { isEmpty, isFragment, isNode, isSafeString, isTrustedHTML, shouldCoerce } from '../../dom/normalize';
14+
import {
15+
isEmpty,
16+
isFragment,
17+
isNode,
18+
isSafeString,
19+
isTrustedHTML,
20+
shouldCoerce,
21+
} from '../../dom/normalize';
1522
import { APPEND_OPCODES } from '../../opcodes';
1623
import DynamicTextContent from '../../vm/content/text';
1724
import { CheckReference } from './-debug-strip';
@@ -89,7 +96,11 @@ APPEND_OPCODES.add(Op.AppendHTML, (vm) => {
8996
let reference = check(vm.stack.pop(), CheckReference);
9097

9198
let rawValue = valueForRef(reference);
92-
let value = isEmpty(rawValue) ? '' : isTrustedHTML(rawValue) ? rawValue as string : String(rawValue);
99+
let value = isEmpty(rawValue)
100+
? ''
101+
: isTrustedHTML(rawValue)
102+
? (rawValue as string)
103+
: String(rawValue);
93104

94105
vm.elements().appendDynamicHTML(value);
95106
});

0 commit comments

Comments
 (0)