Remove duplicate condition

This fixes a warning from LGTM:

    Operands additionnalShares and additionnalShares are identical.

Fix also the typo in the parameter name.
This commit is contained in:
Stefan Weil 2018-10-19 11:54:55 +02:00 committed by Roeland Jago Douma
parent 543c863434
commit 81c0f2a9a7
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 6 additions and 6 deletions

View File

@ -242,7 +242,7 @@
return this._reloadCall.then(callBack, callBack);
},
reloadCallback: function(shares, remoteShares, additionnalShares) {
reloadCallback: function(shares, remoteShares, additionalShares) {
delete this._reloadCall;
this.hideMask();
@ -259,8 +259,8 @@
if (remoteShares && remoteShares[0] && remoteShares[0].ocs) {
remoteShares = remoteShares[0];
}
if (additionnalShares && additionnalShares[0] && additionnalShares[0].ocs) {
additionnalShares = additionnalShares[0];
if (additionalShares && additionalShares[0] && additionalShares[0].ocs) {
additionalShares = additionalShares[0];
}
if (shares.ocs && shares.ocs.data) {
@ -271,8 +271,8 @@
files = files.concat(this._makeFilesFromRemoteShares(remoteShares.ocs.data));
}
if (additionnalShares && additionnalShares && additionnalShares.ocs && additionnalShares.ocs.data) {
files = files.concat(this._makeFilesFromShares(additionnalShares.ocs.data, !this._sharedWithUser));
if (additionalShares && additionalShares.ocs && additionalShares.ocs.data) {
files = files.concat(this._makeFilesFromShares(additionalShares.ocs.data, !this._sharedWithUser));
}