Skip to content
Snippets Groups Projects
Commit bd33a225 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Simplify return statement

parent 5a59c720
No related branches found
No related tags found
No related merge requests found
Pipeline #12451 passed
...@@ -192,10 +192,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { ...@@ -192,10 +192,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
deny = deny && ((mainType !== '*' && mainType !== fileMainType) || (subType !== '*' && subType !== fileSubType)); deny = deny && ((mainType !== '*' && mainType !== fileMainType) || (subType !== '*' && subType !== fileSubType));
}); });
if (deny) { return !deny;
return false;
}
return true;
} }
if (typeof this.allowedMimeTypes !== 'undefined') { if (typeof this.allowedMimeTypes !== 'undefined') {
this.tabulatorTable.setFilter(checkFileType, this.allowedMimeTypes); this.tabulatorTable.setFilter(checkFileType, this.allowedMimeTypes);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment