Skip to content

Commit

Permalink
src: remove unused computation
Browse files Browse the repository at this point in the history
PR-URL: #15593
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
cjihrig authored and MylesBorins committed Sep 29, 2017
1 parent e218c7b commit 9d2ab20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_url.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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]) ||
Expand Down

0 comments on commit 9d2ab20

Please sign in to comment.