eslint autofix

This commit is contained in:
Thomas Grainger 2016-11-29 00:22:34 +00:00
parent 0d42541860
commit ad730d806b
No known key found for this signature in database
GPG key ID: 995EA0A029283160
60 changed files with 13067 additions and 13014 deletions

View file

@ -9,14 +9,14 @@
*
* @namespace
*/
var Punycode = {
const Punycode = {
/**
* @constant
* @default
*/
IDN: false,
IDN: false,
/**
* To Punycode operation.
*
@ -24,17 +24,17 @@ var Punycode = {
* @param {Object[]} args
* @returns {string}
*/
run_to_ascii: function(input, args) {
var idn = args[0];
if (idn) {
return punycode.ToASCII(input);
} else {
return punycode.encode(input);
}
},
run_to_ascii(input, args) {
const idn = args[0];
if (idn) {
return punycode.ToASCII(input);
} else {
return punycode.encode(input);
}
},
/**
* From Punycode operation.
*
@ -42,14 +42,14 @@ var Punycode = {
* @param {Object[]} args
* @returns {string}
*/
run_to_unicode: function(input, args) {
var idn = args[0];
if (idn) {
return punycode.ToUnicode(input);
} else {
return punycode.decode(input);
}
},
run_to_unicode(input, args) {
const idn = args[0];
if (idn) {
return punycode.ToUnicode(input);
} else {
return punycode.decode(input);
}
},
};