Add missing semicolons

This fixes some recommendations from LGTM:

    Avoid automated semicolon insertion (90% of all statements
    in the enclosing function have an explicit semicolon).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-10-19 11:23:33 +02:00
parent a1ea504edf
commit 2ad38200fb
5 changed files with 8 additions and 8 deletions

View file

@ -102,7 +102,7 @@
this.$el.insertAfter($('#app-content')); this.$el.insertAfter($('#app-content'));
} else { } else {
if ($appSidebar[0] !== this.el) { if ($appSidebar[0] !== this.el) {
$appSidebar.replaceWith(this.$el) $appSidebar.replaceWith(this.$el);
} }
} }

View file

@ -310,10 +310,10 @@
breadcrumbOptions.onDrop = _.bind(this._onDropOnBreadCrumb, this); breadcrumbOptions.onDrop = _.bind(this._onDropOnBreadCrumb, this);
breadcrumbOptions.onOver = function() { breadcrumbOptions.onOver = function() {
self.$el.find('td.filename.ui-droppable').droppable('disable'); self.$el.find('td.filename.ui-droppable').droppable('disable');
} };
breadcrumbOptions.onOut = function() { breadcrumbOptions.onOut = function() {
self.$el.find('td.filename.ui-droppable').droppable('enable'); self.$el.find('td.filename.ui-droppable').droppable('enable');
} };
} }
this.breadcrumb = new OCA.Files.BreadCrumb(breadcrumbOptions); this.breadcrumb = new OCA.Files.BreadCrumb(breadcrumbOptions);

View file

@ -232,7 +232,7 @@
promises.push($.ajax(remoteShares)); promises.push($.ajax(remoteShares));
} }
if (this._isOverview) { if (this._isOverview) {
shares.data.shared_with_me = !shares.data.shared_with_me shares.data.shared_with_me = !shares.data.shared_with_me;
promises.push($.ajax(shares)); promises.push($.ajax(shares));
} }
} }

View file

@ -302,7 +302,7 @@ OCA = OCA || {};
if( !view.getFilterItem().$element.val() if( !view.getFilterItem().$element.val()
&& view.parsedFilterMode === view.configModel.FILTER_MODE_ASSISTED && view.parsedFilterMode === view.configModel.FILTER_MODE_ASSISTED
) { ) {
view.configModel.requestWizard(view.getFilterItem().keyName) view.configModel.requestWizard(view.getFilterItem().keyName);
} }
} else if (payload.feature === view.getGroupsItem().featureName) { } else if (payload.feature === view.getGroupsItem().featureName) {
if(view.manyGroupsSupport && payload.data.length > view._groupElementSwitchThreshold) { if(view.manyGroupsSupport && payload.data.length > view._groupElementSwitchThreshold) {

View file

@ -114,7 +114,7 @@
}); });
clipboard.on('error', function (e) { clipboard.on('error', function (e) {
var $menu = $(e.trigger); var $menu = $(e.trigger);
var $linkTextMenu = $menu.parent().next('li.linkTextMenu') var $linkTextMenu = $menu.parent().next('li.linkTextMenu');
var $input = $linkTextMenu.find('.linkText'); var $input = $linkTextMenu.find('.linkText');
var actionMsg = ''; var actionMsg = '';
@ -393,8 +393,8 @@
var isLinkShare = this.model.get('linkShare').isLinkShare; var isLinkShare = this.model.get('linkShare').isLinkShare;
var isPasswordSet = !!this.model.get('linkShare').password; var isPasswordSet = !!this.model.get('linkShare').password;
var isPasswordEnforced = this.configModel.get('enforcePasswordForPublicLink') var isPasswordEnforced = this.configModel.get('enforcePasswordForPublicLink');
var isPasswordEnabledByDefault = this.configModel.get('enableLinkPasswordByDefault') === true var isPasswordEnabledByDefault = this.configModel.get('enableLinkPasswordByDefault') === true;
var showPasswordCheckBox = isLinkShare var showPasswordCheckBox = isLinkShare
&& ( !this.configModel.get('enforcePasswordForPublicLink') && ( !this.configModel.get('enforcePasswordForPublicLink')
|| !this.model.get('linkShare').password); || !this.model.get('linkShare').password);