Skip to content

Commit

Permalink
fix: remove async wrapper around static builders
Browse files Browse the repository at this point in the history
Signed-off-by: Tierney Cyren <hello@bnb.im>
  • Loading branch information
bnb committed Jun 26, 2024
1 parent bc66127 commit 91b9fbf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
9 changes: 4 additions & 5 deletions static/build/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ async function writeReleases(filename) {
const data = await nodevu();
const releases = {};

async () => {
for await (const verison of Object.keys(data)) {
releases[version] = data[version].releases;
}
};
for await (const version of Object.keys(data)) {
releases[version] = data[version].releases;
}

write('./static/data/releases.json', releases);
}

Expand Down
9 changes: 4 additions & 5 deletions static/build/security.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ async function writeSecurity(filename) {
const data = await nodevu();
const security = {};

async () => {
for await (const version of Object.keys(data)) {
security[version] = data[version].security;
}
};
for await (const version of Object.keys(data)) {
security[version] = data[version].security;
}

write('./static/data/security.json', security);
}

Expand Down
9 changes: 4 additions & 5 deletions static/build/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ async function writeSupport(filename) {
const data = await nodevu();
const support = {};

async () => {
for await (const version of Object.keys(data)) {
support[version] = data[version].support;
}
};
for await (const version of Object.keys(data)) {
support[version] = data[version].support;
}

write('./static/data/support.json', support);
}

Expand Down

0 comments on commit 91b9fbf

Please sign in to comment.