Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

remove unneeded explicit returns in filters stimulus controller

Ivan Kuchincf0f92579c4c
diff --git a/frontend/src/stimulus/controllers/dynamic/filters.controller.ts b/frontend/src/stimulus/controllers/dynamic/filters.controller.ts
index 50650a77a29..bad3dcd6b5b 100644
--- a/frontend/src/stimulus/controllers/dynamic/filters.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/filters.controller.ts
@@ -202,9 +202,9 @@ export default class FiltersController extends Controller {
let filterParam;
if (this.outputFormatValue === 'json') {
- filterParam = JSON.stringify(filters.map((filter) => { return this.buildFilterJSON(filter); }));
+ filterParam = JSON.stringify(filters.map((filter) => this.buildFilterJSON(filter)));
} else {
- filterParam = filters.map((filter) => { return this.buildFilterString(filter); }).join('&');
+ filterParam = filters.map((filter) => this.buildFilterString(filter)).join('&');
}
let queryString = `?filters=${encodeURIComponent(filterParam)}`;