diff options
author | Stefan Weil <sw@weilnetz.de> | 2018-10-19 11:37:11 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-19 20:17:55 +0200 |
commit | c5d3febf37f739b9ffbab636914f2ab368f68bbb (patch) | |
tree | afaef37a4fc6fc46888cd7131ac5ebe8436efcfd /apps/files_sharing/js | |
parent | 543c8634340607c5dd088b9cbdcd85700222ee0b (diff) | |
download | nextcloud-server-c5d3febf37f739b9ffbab636914f2ab368f68bbb.tar.gz nextcloud-server-c5d3febf37f739b9ffbab636914f2ab368f68bbb.zip |
Add missing variable declarations
This fixes errors from LGTM like the following one:
Variable i is used like a local variable,
but is missing a declaration.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/sharedfilelist.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index 19250815bd6..3e2bcf59032 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; @@ -107,6 +107,8 @@ modifiedColor = 160; } + var formatted; + var text; if (expirationTimestamp > 0) { formatted = OC.Util.formatDate(expirationTimestamp); text = OC.Util.relativeModifiedDate(expirationTimestamp); |