From a887c6e77b15a57f67e5fa4c6b823d22734c354f Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 19 Oct 2018 12:01:50 +0200 Subject: Fix use of undeclared variable This fixes a warning from LGTM: Variable 'data' is used before its declaration. Signed-off-by: Stefan Weil --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/js') 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 -- cgit v1.2.3