From f0a9170a8abe39981e79327cfb5f91f61a08c5e7 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 13 Jan 2020 10:44:31 +0100 Subject: [PATCH] add comments --- src/app/files/file-explorer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index 340cd90e01..9a74ffee0d 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -470,6 +470,7 @@ fileExplorer.prototype.toGist = function (id) { return data.files || [] } + // If 'id' is not defined, it is not a gist update but a creation so we have to take the files from the browser explorer. const folder = id ? 'browser/gists/' + id : 'browser/' this.packageFiles(this.files, folder, (error, packaged) => { if (error) {