Skip to content

Commit

Permalink
BlockedUserHistory: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Jul 12, 2024
1 parent d3970f2 commit 341e966
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions BlockedUserHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,9 @@ class BlockedUserHistory {
*/
setUriParameters( url, paramsToChange ) {
const urlObj = new URL( url );

// Update query parameters based on the paramsToChange object
for ( const key in paramsToChange ) {
urlObj.searchParams.set( key, paramsToChange[ key ] );
}

return urlObj.toString();
}

Expand Down

0 comments on commit 341e966

Please sign in to comment.