Browse Source

src: remove unused computation

PR-URL: https://github.com/nodejs/node/pull/15593
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
canary-base
cjihrig 7 years ago
parent
commit
75ab1e0d9f
No known key found for this signature in database GPG Key ID: 7434390BDBE9B9C5
  1. 4
      src/node_url.cc

4
src/node_url.cc

@ -515,10 +515,10 @@ static inline void PercentDecode(const char* input,
dest->reserve(len);
const char* pointer = input;
const char* end = input + len;
size_t remaining = pointer - end - 1;
while (pointer < end) {
const char ch = pointer[0];
remaining = (end - pointer) + 1;
size_t remaining = (end - pointer) + 1;
if (ch != '%' || remaining < 2 ||
(ch == '%' &&
(!IsASCIIHexDigit(pointer[1]) ||

Loading…
Cancel
Save