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

Simplify return statement

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