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 <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>
  • Loading branch information
cjihrig authored and MylesBorins committed Oct 3, 2017
1 parent 9da8346 commit 9fcf5d7
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 9fcf5d7

Please sign in to comment.