From 1b67aff49938f77356cf54e750c2ad15fd8a28a1 Mon Sep 17 00:00:00 2001 From: Pablo Castellano Date: Thu, 7 Nov 2024 12:20:10 +0700 Subject: [PATCH] refactor: extract variable --- packages/syncers/src/syncers/SwarmStampSyncer.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/syncers/src/syncers/SwarmStampSyncer.ts b/packages/syncers/src/syncers/SwarmStampSyncer.ts index c5af6c98b..d0b769974 100644 --- a/packages/syncers/src/syncers/SwarmStampSyncer.ts +++ b/packages/syncers/src/syncers/SwarmStampSyncer.ts @@ -67,11 +67,8 @@ export class SwarmStampSyncer extends BaseSyncer { }, }); - this.logger.info( - `Swarm batch ID "${batchId}" updated. New expiry date: ${formatTtl( - batchTTL - )}.` - ); + const expiryDate = formatTtl(batchTTL); + this.logger.info(`Swarm batch ID "${batchId}" updated. New expiry date: ${expiryDate}.`); }, }); }