From 9d82ca25630e7e07ad81985f0075c7686ba622bd Mon Sep 17 00:00:00 2001 From: daniep01 Date: Sat, 16 Jul 2022 21:12:52 +0000 Subject: [PATCH] Prettified Code! --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c9b6fb6..98af96b 100644 --- a/index.js +++ b/index.js @@ -43,7 +43,7 @@ instance.prototype.init = function () { instance.prototype.auth = function () { var self = this self.header = [] - + if (self.config.apiToken !== null && self.config.apiToken.length > 0) { auth = Buffer.from(self.config.apiToken + ':' + 'api_token').toString('base64') self.header['Content-Type'] = 'application/json'