Remove extra assignment

This commit is contained in:
samme 2018-03-07 16:59:41 -08:00
parent cad8a5ce64
commit b625cc1ff6

View file

@ -20,12 +20,10 @@
*/ */
var Format = function (string, values) var Format = function (string, values)
{ {
string = string.replace(/%([0-9]+)/g, function (s, n) return string.replace(/%([0-9]+)/g, function (s, n)
{ {
return values[Number(n) - 1]; return values[Number(n) - 1];
}); });
return string;
}; };
module.exports = Format; module.exports = Format;