summaryrefslogtreecommitdiff
path: root/src/node_url.cc
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2017-03-16 16:46:12 -0700
committerTimothy Gu <timothygu99@gmail.com>2017-03-21 17:45:54 -0700
commitd23123643d98165c67ad51d1fdecf06486b1c6d9 (patch)
treeff32e7abb19b78301a3a7c7b8697e2d20ce712ea /src/node_url.cc
parentc515a985ea77495986391dada7baaffcc144b197 (diff)
downloadandroid-node-v8-d23123643d98165c67ad51d1fdecf06486b1c6d9.tar.gz
android-node-v8-d23123643d98165c67ad51d1fdecf06486b1c6d9.tar.bz2
android-node-v8-d23123643d98165c67ad51d1fdecf06486b1c6d9.zip
src: make PercentDecode return void
It only returns 0, nor is it likely to have any error conditions in the future. PR-URL: https://github.com/nodejs/node/pull/11922 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_url.cc')
-rw-r--r--src/node_url.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node_url.cc b/src/node_url.cc
index 1aae557115..6a9f8f3ca9 100644
--- a/src/node_url.cc
+++ b/src/node_url.cc
@@ -368,8 +368,7 @@ namespace url {
}
// First, we have to percent decode
- if (PercentDecode(input, length, &decoded) < 0)
- goto end;
+ PercentDecode(input, length, &decoded);
// Then we have to punycode toASCII
if (!ToASCII(&decoded, &decoded))