Skip to content

Commit 5da64ba

Browse files
committed
Undo changes accidentally created for some reason
1 parent 1d5abe7 commit 5da64ba

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

packages/ember-repl/src/compile/Compiled.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export function Compiled(
1212
format?: Format,
1313
flavor?: string
1414
): CompileState;
15-
export function Compiled(markdownText: Input | (() => Input), format: () => Format): CompileState;
15+
export function Compiled(
16+
markdownText: Input | (() => Input),
17+
format: () => Format
18+
): CompileState;
1619
export function Compiled(
1720
markdownText: Input | (() => Input),
1821
format: () => Format,
@@ -29,9 +32,14 @@ export function Compiled(
2932
maybeFlavor?: string | (() => string)
3033
): CompileState {
3134
return resource(({ owner }) => {
32-
const input = typeof markdownText === 'function' ? markdownText() : markdownText;
33-
const format = typeof maybeFormat === 'function' ? maybeFormat() : maybeFormat || 'glimdown';
34-
const flavor = typeof maybeFlavor === 'function' ? maybeFlavor() : maybeFlavor;
35+
const input =
36+
typeof markdownText === 'function' ? markdownText() : markdownText;
37+
const format =
38+
typeof maybeFormat === 'function'
39+
? maybeFormat()
40+
: maybeFormat || 'glimdown';
41+
const flavor =
42+
typeof maybeFlavor === 'function' ? maybeFlavor() : maybeFlavor;
3543

3644
const compiler = getCompiler(owner);
3745

packages/ember-repl/src/compile/compile.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ interface Options {
1717
onCompileStart?: () => Promise<unknown> | unknown;
1818
}
1919

20-
export function compile(service: CompilerService, text: Input, options: Options): CompileState {
20+
export function compile(
21+
service: CompilerService,
22+
text: Input,
23+
options: Options
24+
): CompileState {
2125
const data = { format: options.format };
2226

2327
if (!text) {

0 commit comments

Comments
 (0)