From b7caeb844a1aece1a57cd17e89ec53601fe6d8db Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 16 Jul 2015 22:59:09 -0700 Subject: [PATCH] Add assert --- src/cloudron.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cloudron.js b/src/cloudron.js index df81b851a..e9b9af353 100644 --- a/src/cloudron.js +++ b/src/cloudron.js @@ -403,6 +403,7 @@ function migrate(size, region, callback) { } function update(boxUpdateInfo, callback) { + assert.strictEqual(typeof boxUpdateInfo, 'object'); assert.strictEqual(typeof callback, 'function'); if (!boxUpdateInfo) return callback(null);