mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00:00
DEV: removes unecessary casting (#9982)
This commit is contained in:
parent
de29b4a511
commit
a23d31e4d6
@ -52,9 +52,7 @@ function findTopicList(store, tracking, filter, filterParams, extras) {
|
||||
// Clean up any string parameters that might slip through
|
||||
filterParams = filterParams || {};
|
||||
Object.keys(filterParams).forEach(k => {
|
||||
let val = filterParams[k];
|
||||
if (val === "false") val = false;
|
||||
if (val === "true") val = true;
|
||||
const val = filterParams[k];
|
||||
if (val === "undefined" || val === "null") {
|
||||
filterParams[k] = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user