From b2cb149f352aa942d83b4848cac5f82fe6c33571 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 21 Aug 2019 11:41:09 +0800 Subject: [PATCH] chore: add yarnrc --- .yarnrc | 1 + lib/routes/bilibili/utils.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .yarnrc diff --git a/.yarnrc b/.yarnrc new file mode 100644 index 000000000..0f9fcfce5 --- /dev/null +++ b/.yarnrc @@ -0,0 +1 @@ +--exact true diff --git a/lib/routes/bilibili/utils.js b/lib/routes/bilibili/utils.js index 71deafff9..6c5b7dcac 100644 --- a/lib/routes/bilibili/utils.js +++ b/lib/routes/bilibili/utils.js @@ -13,7 +13,7 @@ const ProcessFeed = async (list, caches) => list .filter(async (aid) => { const data = await caches.tryGet('av' + aid, async () => await load(aid)); - return data.code == 0; + return data.code === 0; }) .map(async (aid) => { let data = await caches.tryGet('av' + aid, async () => await load(aid));