aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/sharedfilelist.js
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2018-10-19 11:54:55 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-19 20:19:08 +0200
commit81c0f2a9a79b921df55483e08a1c7ff4bfed9bd0 (patch)
treee6a4e0c5d7175663117409ca6db5abc95421f8d4 /apps/files_sharing/js/sharedfilelist.js
parent543c8634340607c5dd088b9cbdcd85700222ee0b (diff)
downloadnextcloud-server-81c0f2a9a79b921df55483e08a1c7ff4bfed9bd0.tar.gz
nextcloud-server-81c0f2a9a79b921df55483e08a1c7ff4bfed9bd0.zip
Remove duplicate condition
This fixes a warning from LGTM: Operands additionnalShares and additionnalShares are identical. Fix also the typo in the parameter name.
Diffstat (limited to 'apps/files_sharing/js/sharedfilelist.js')
-rw-r--r--apps/files_sharing/js/sharedfilelist.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index 19250815bd6..bd22a250f7d 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -90,7 +90,7 @@
var permission = fileData.permissions;
$tr.attr('data-share-permissions', permission);
}
-
+
// add row with expiration date for link only shares - influenced by _createRow of filelist
if (this._linksOnly) {
var expirationTimestamp = 0;
@@ -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));
}