Skip to content

Commit 0579450

Browse files
Matteen.MobasheranMatteen.Mobasheran
authored andcommitted
remove unnecessary asyncs
1 parent 1fb27b5 commit 0579450

File tree

3 files changed

+27
-1500
lines changed

3 files changed

+27
-1500
lines changed

src/buildList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const polygon = require("./tokens/polygon.json");
88
const mumbai = require("./tokens/mumbai.json");
99
const bridgeUtils = require('@uniswap/token-list-bridge-utils');
1010

11-
module.exports = async function buildList() {
11+
module.exports = function buildList() {
1212
const parsed = version.split(".");
1313
const l1List = {
1414
name: "Uniswap Labs Default List",
@@ -30,5 +30,5 @@ module.exports = async function buildList() {
3030
return t1.chainId < t2.chainId ? -1 : 1;
3131
}),
3232
};
33-
return await bridgeUtils.chainify(l1List)
33+
return bridgeUtils.chainify(l1List);
3434
};

src/write.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
const buildList = require('./buildList');
22

3-
(async () => {
4-
console.log(JSON.stringify(await buildList(), null, 2));
5-
})();
3+
buildList().then(data => console.log(JSON.stringify(data, null, 2)));

0 commit comments

Comments
 (0)