Skip to content

Commit 8758e6b

Browse files
committed
refactor: arrow function
1 parent 834b1b2 commit 8758e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/punycode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ const decode = (input) => {
227227
* string.
228228
*/
229229
const toUnicode = (input) => {
230-
return mapDomain(input, function(string) {
230+
return mapDomain(input, (string) => {
231231
return regexPunycode.test(string)
232232
? decode(string.slice(4).toLowerCase())
233233
: string;

0 commit comments

Comments
 (0)