Skip to content

Commit 79fa53e

Browse files
committed
Fix prettier
1 parent 480db39 commit 79fa53e

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

packages/runtime-common/realm.ts

+20-23
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,8 @@ export class Realm {
524524
let type = opts?.isDelete
525525
? 'removed'
526526
: (await this.#adapter.exists(path))
527-
? 'updated'
528-
: 'added';
527+
? 'updated'
528+
: 'added';
529529
let messageHash = `${type}-${JSON.stringify({ [type]: path })}`;
530530
this.#recentWrites.set(
531531
messageHash,
@@ -729,15 +729,14 @@ export class Realm {
729729
if (!request.headers.get('X-Boxel-Building-Index')) {
730730
let timeout = await Promise.race<void | Error>([
731731
this.#startedUp.promise,
732-
new Promise(
733-
(resolve) =>
734-
setTimeout(() => {
735-
resolve(
736-
new Error(
737-
`Timeout waiting for realm ${this.url} to become ready`,
738-
),
739-
);
740-
}, 60 * 1000).unref?.(),
732+
new Promise((resolve) =>
733+
setTimeout(() => {
734+
resolve(
735+
new Error(
736+
`Timeout waiting for realm ${this.url} to become ready`,
737+
),
738+
);
739+
}, 60 * 1000).unref?.(),
741740
),
742741
]);
743742
if (timeout) {
@@ -1097,20 +1096,20 @@ export class Realm {
10971096
module?.type === 'module'
10981097
? module.canonicalURL
10991098
: instance?.type === 'instance'
1100-
? instance.canonicalURL
1101-
: undefined;
1099+
? instance.canonicalURL
1100+
: undefined;
11021101
let source =
11031102
module?.type === 'module'
11041103
? module.source
11051104
: instance?.type === 'instance'
1106-
? instance.source
1107-
: undefined;
1105+
? instance.source
1106+
: undefined;
11081107
let lastModified =
11091108
module?.type === 'module'
11101109
? module.lastModified
11111110
: instance?.type === 'instance'
1112-
? instance.lastModified
1113-
: undefined;
1111+
? instance.lastModified
1112+
: undefined;
11141113
if (canonicalURL == null || source == null || lastModified == null) {
11151114
throw new Error(
11161115
`missing 'canonicalURL', 'source', and/or 'lastModified' from index entry ${
@@ -1289,9 +1288,8 @@ export class Realm {
12891288
}
12901289

12911290
let url = this.paths.fileURL(localPath);
1292-
let originalMaybeError = await this.#realmIndexQueryEngine.cardDocument(
1293-
url,
1294-
);
1291+
let originalMaybeError =
1292+
await this.#realmIndexQueryEngine.cardDocument(url);
12951293
if (!originalMaybeError) {
12961294
return notFound(request, requestContext);
12971295
}
@@ -1619,7 +1617,6 @@ export class Realm {
16191617
);
16201618

16211619
let cardsQuery = parseQuery(new URL(request.url).search.slice(1));
1622-
16231620
assertQuery(cardsQuery);
16241621

16251622
let doc = await this.#realmIndexQueryEngine.search(cardsQuery, {
@@ -1954,8 +1951,8 @@ export class Realm {
19541951
operation: ('added' in data
19551952
? 'add'
19561953
: 'updated' in data
1957-
? 'update'
1958-
: 'removed') as UpdateItem['operation'],
1954+
? 'update'
1955+
: 'removed') as UpdateItem['operation'],
19591956
url: tracked.url,
19601957
});
19611958
this.drainUpdates();

0 commit comments

Comments
 (0)