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>
This commit is contained in:
Stefan Weil 2018-10-19 12:01:50 +02:00
parent f737ae719d
commit a887c6e77b
1 changed files with 1 additions and 1 deletions

View File

@ -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