From edc9bd494dc29a3089f26b91feaac72c23a8dad9 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Sun, 15 Jan 2023 22:57:19 +0300 Subject: [PATCH] Less {} --- main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 0e1e9f0..44d692a 100644 --- a/main.js +++ b/main.js @@ -15,12 +15,12 @@ const tClient = new Twitter({ }); tClient.get("account/verify_credentials", { skip_status: true }) - .catch(err => { + .catch(err => console.log(`Unable to login due to the following error:\n${err}`) - }) - .then(res => { - console.log(`Logged in as '${res.data.name}'!`); - }); + ) + .then(res => + console.log(`Logged in as '${res.data.name}'!`) + ); let stream = tClient.stream("statuses/filter", { follow: config.user_id });