summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2018-10-19 12:01:50 +0200
committerStefan Weil <sw@weilnetz.de>2018-10-22 21:07:52 +0200
commita887c6e77b15a57f67e5fa4c6b823d22734c354f (patch)
treedb0084607175a3b83e935cada1756b5d41ed9ec9 /apps/files/js
parentf737ae719de2e2af534bce03a8920bbb96aa8700 (diff)
downloadnextcloud-server-a887c6e77b15a57f67e5fa4c6b823d22734c354f.tar.gz
nextcloud-server-a887c6e77b15a57f67e5fa4c6b823d22734c354f.zip
Fix use of undeclared variable
This fixes a warning from LGTM: Variable 'data' is used before its declaration. Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 0a6620ab22c..5e40519d9de 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -3172,9 +3172,9 @@
* update counter when uploading to sub folder
*/
uploader.on('done', function(e, upload) {
+ var data = upload.data;
self._uploader.log('filelist handle fileuploaddone', e, data);
- var data = upload.data;
var status = data.jqXHR.status;
if (status < 200 || status >= 300) {
// error was handled in OC.Uploads already