From 4910ba62db2199014d7441e8ab0ea1ab082d7dec Mon Sep 17 00:00:00 2001 From: Bsian Date: Wed, 1 Jan 2020 16:13:51 +0000 Subject: [PATCH] remove 0 values --- src/commands/parseall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/parseall.ts b/src/commands/parseall.ts index ea119c5..18af83c 100644 --- a/src/commands/parseall.ts +++ b/src/commands/parseall.ts @@ -41,7 +41,7 @@ export default class Parseall extends Command { const measurements = ['yr', 'mo', 'd', 'h', 'm', 's']; precise.push([t, measurements[index]]); }); - const time = precise.map(((v) => v.join(''))).join(', '); + const time = precise.filter((n) => n[0]).map(((v) => v.join(''))).join(', '); if (notAfter < new Date()) final.push(`${this.client.stores.emojis.error} **${a.username}** Certificate expired ${time} ago`); else final.push(`${this.client.stores.emojis.success} **${a.username}** Certificate expires in ${time}`);