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/js/newfilemenu.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/js/newfilemenu.js')
-rw-r--r-- | apps/files/js/newfilemenu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/newfilemenu.js b/apps/files/js/newfilemenu.js index 01a183a33a7..69450e97c2a 100644 --- a/apps/files/js/newfilemenu.js +++ b/apps/files/js/newfilemenu.js @@ -171,7 +171,7 @@ /* Find the right actionHandler that should be called. * Actions is retrieved by using `actionSpec.id` */ - action = _.filter(self._menuItems, function(item) { + var action = _.filter(self._menuItems, function(item) { return item.id == $target.attr('data-action'); }).pop(); action.actionHandler(newname); |