From 9d14ed5e84486c410ee4c090d7d6857791af5ea9 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Mon, 23 Aug 2021 11:40:13 +0300 Subject: [PATCH] style: fmt examples --- examples/turnstile.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/turnstile.ts b/examples/turnstile.ts index ff3c121..ceb8bb0 100644 --- a/examples/turnstile.ts +++ b/examples/turnstile.ts @@ -13,16 +13,16 @@ async function main() { const sm = smbTurnstile.build(locked); function logCurrentState() { - console.log('current state', JSON.stringify(sm.currentState.name)) + console.log("current state", JSON.stringify(sm.currentState.name)); } - logCurrentState() - await sm.trigger('coin', {}) - logCurrentState() - await sm.trigger('push', {}) - logCurrentState() - await sm.trigger('push', {}) - logCurrentState() + logCurrentState(); + await sm.trigger("coin", {}); + logCurrentState(); + await sm.trigger("push", {}); + logCurrentState(); + await sm.trigger("push", {}); + logCurrentState(); } if (import.meta.main) {