Skip to content
This repository was archived by the owner on Aug 10, 2024. It is now read-only.

Commit b3de61f

Browse files
committed
prettier
1 parent 0f7f9f7 commit b3de61f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

cloudflare-worker/worker.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// let's be nice
32
const MAX_SEARCH_TERMS = 5;
43
const DEFAULT_LIMIT = 40;
@@ -61,10 +60,11 @@ async function getFeedSkeleton(request) {
6160
let responsePromises = [];
6261

6362
for (let searchTerm of searchTerms) {
64-
let url = "https://search.bsky.social/search/posts?"
65-
+ new URLSearchParams({
66-
q: searchTerm,
67-
});
63+
let url =
64+
"https://search.bsky.social/search/posts?" +
65+
new URLSearchParams({
66+
q: searchTerm,
67+
});
6868
responsePromises.push(fetch(url));
6969
}
7070
let responses = await Promise.all(responsePromises);
@@ -84,11 +84,13 @@ async function getFeedSkeleton(request) {
8484
timestampURLs.push([timestamp, atURL]);
8585
}
8686

87-
timestampURLs = timestampURLs.toSorted((b, a) => (a === b) ? 0 : (a < b) ? -1 : 1);
87+
timestampURLs = timestampURLs.toSorted((b, a) =>
88+
a === b ? 0 : a < b ? -1 : 1
89+
);
8890
var feed = [];
8991
for (let timestampUrl of timestampURLs) {
9092
let atUrl = timestampUrl[1];
91-
feed.push({ post : atUrl });
93+
feed.push({ post: atUrl });
9294
}
9395
// TODO apply this after adding pagination support
9496
// feed = feed.slice(0, limit);

0 commit comments

Comments
 (0)