Skip to content
Myr

refactor(utils/url): remove unnecessary code (#1315)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* refactor(utils/url): remove unnecessary code * denoify

authored by Yusuke Wada · committed by GitHub · parent 48a8729 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:deno_dist/utils/url.ts+1 added-1 removed
148 unmodified lines
149 multiple?: boolean150): string | undefined | Record<string, string> | string[] | Record<string, string[]> => {151 let encoded152153 if (!multiple && key && !/[%+]/.test(key)) {153 if (key && !multiple) {154 // optimized for unencoded key155156 let keyIndex = url.indexOf(`?${key}`, 8)157 if (keyIndex === -1) {
83 unmodified lines
modified:src/utils/url.ts+1 added-1 removed
148 unmodified lines
149 multiple?: boolean150): string | undefined | Record<string, string> | string[] | Record<string, string[]> => {151 let encoded152153 if (!multiple && key && !/[%+]/.test(key)) {153 if (key && !multiple) {154 // optimized for unencoded key155156 let keyIndex = url.indexOf(`?${key}`, 8)157 if (keyIndex === -1) {
83 unmodified lines