Skip to content

Commit d607d8f

Browse files
committed
remove extra param from tokenForPart
1 parent 7e5d24d commit d607d8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/impl/tokenParser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ const partTypeStyleToTokenVal = {
233233
},
234234
};
235235

236-
function tokenForPart(part, locale, formatOpts) {
236+
function tokenForPart(part, formatOpts) {
237237
const { type, value } = part;
238238

239239
if (type === "literal") {
@@ -435,5 +435,5 @@ export function formatOptsToTokens(formatOpts, locale) {
435435

436436
const formatter = Formatter.create(locale, formatOpts);
437437
const parts = formatter.formatDateTimeParts(getDummyDateTime());
438-
return parts.map((p) => tokenForPart(p, locale, formatOpts));
438+
return parts.map((p) => tokenForPart(p, formatOpts));
439439
}

0 commit comments

Comments
 (0)