From 3c9d7706defee1fd73223d5753dbf493e92e3623 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 23 Jan 2017 21:40:06 +0100 Subject: [PATCH] Let the api call fail instead of explictily checking the token --- src/cloudron.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cloudron.js b/src/cloudron.js index 85a9cd965..e3891a95d 100644 --- a/src/cloudron.js +++ b/src/cloudron.js @@ -490,8 +490,6 @@ function sendAliveStatus(callback) { // Caas Cloudrons do not store appstore credentials in their local database if (config.provider() === 'caas') { - if (!config.token()) return callback(new CloudronError(CloudronError.INTERNAL_ERROR, 'no token set')); - var url = config.apiServerOrigin() + '/api/v1/exchangeBoxTokenWithUserToken'; superagent.post(url).query({ token: config.token() }).timeout(30 * 1000).end(function (error, result) { if (error && !error.response) return callback(new CloudronError(CloudronError.EXTERNAL_ERROR, error));