From 8d82d4cac5a8a75608aca53472f9a102ad28d038 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 29 May 2014 03:13:17 -0400 Subject: [PATCH] refactor(github) uploadFile --- lib/client/storage/_github.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/client/storage/_github.js b/lib/client/storage/_github.js index 4576fa9d..b730c819 100644 --- a/lib/client/storage/_github.js +++ b/lib/client/storage/_github.js @@ -148,8 +148,10 @@ var CloudCmd, Util, DOM, CloudFunc, Github, cb; options.files = files; gist.create(options, function(error, data) { - Util.log(error || data); - Util.log(data && data.html_url); + if (error) + Util.log(error || data); + else + Util.logArray([data, data.html_url]); Util.exec(callback); DOM.Images.hide();