1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-06-28 23:09:18 +00:00

perf: Remove Uneeded logging (#219)

This commit is contained in:
2021-12-31 00:40:04 +01:00
committed by GitHub
parent 16467d4a19
commit 1d8077d8b4
2 changed files with 10 additions and 13 deletions

View File

@ -80,10 +80,8 @@ export default class Card implements LocalCard {
const res = (require(`../../../generated/${lang}/cards.json`) as Array<SDKCard>).find((c) => {
return objectLoop(params, (it, key) => {
if (key === 'set' && typeof it === 'string') {
console.log("set", c['set'].id, it, lightCheck(c['set'].id, it))
return (c['set'].id === it || lightCheck(c['set'].name, it))
}
console.log("other field", key, c[key as 'localId'], it, lightCheck(c[key as 'localId'], it))
return lightCheck(c[key as 'localId'], it)
})
})