Skip to content

Commit

Permalink
Update setIfTrue
Browse files Browse the repository at this point in the history
Set 1 instead of true, remove unused code, #40.
  • Loading branch information
skodapetr committed Oct 13, 2024
1 parent e785ba8 commit 10a501b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions server/http/application-list/application-list-query.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,3 @@ function setIfNotEmpty(query, key, value) {
query[key] = value;
}

function setIfTrue(query, key, value) {
if (value === true) {
query[key] = value;
}
}
2 changes: 1 addition & 1 deletion server/http/dataset-list/dataset-list-query.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ function setIfNotEmpty(query, key, value) {

function setIfTrue(query, key, value) {
if (value === true) {
query[key] = value;
query[key] = 1;
}
}
5 changes: 0 additions & 5 deletions server/http/suggestion-list/suggestion-list-query.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,3 @@ function setIfNotEmpty(query, key, value) {
query[key] = value;
}

function setIfTrue(query, key, value) {
if (value === true) {
query[key] = value;
}
}

0 comments on commit 10a501b

Please sign in to comment.