aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-06-21 18:19:51 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-06-21 18:19:51 +0530
commit76fffdedd7274b1ea8653d1631e72646f86d94c9 (patch)
tree5a6d53eee8a95cd584029dd3b846ce60e4bea1c8
parent39035139130925bf596175ad8a3419a4cea401a8 (diff)
can be const
-rw-r--r--src/util/payto.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/payto.ts b/src/util/payto.ts
index 0f624de67..b675b5d1f 100644
--- a/src/util/payto.ts
+++ b/src/util/payto.ts
@@ -28,7 +28,7 @@ const paytoPfx = "payto://";
export function addPaytoQueryParams(s: string, params: { [name: string]: string }): string {
const [acct, search] = s.slice(paytoPfx.length).split("?");
const searchParams = new URLSearchParams(search || "");
- for (let k of Object.keys(params)) {
+ for (const k of Object.keys(params)) {
searchParams.set(k, params[k]);
}
return paytoPfx + acct + "?" + searchParams.toString();