Skip to content

Commit

Permalink
lint: remove unreachable branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jan 7, 2017
1 parent 2a08417 commit b84eb2f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,10 @@ function pdecode (str, hex) {
*/

function pencode (char) {
var hex = String(char)
return '%' + String(char)
.charCodeAt(0)
.toString(16)
.toUpperCase()
return hex.length === 1
? '%0' + hex
: '%' + hex
}

/**
Expand Down

0 comments on commit b84eb2f

Please sign in to comment.