Skip to content

Commit

Permalink
chore: remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisermann committed Sep 3, 2023
1 parent a504ebc commit dc45b6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,14 @@ export function getOptions() {

export function init(opts: ConfigureOptionsInit) {
const { formats, ...rest } = opts;
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing

let initialLocale = opts.fallbackLocale;

if (opts.initialLocale) {
try {
const canonicalizedLocale = getCanonicalLocales(opts.initialLocale);

// Ensure the passed locale is in the canonical form
if (canonicalizedLocale.length >= 1) {
initialLocale = canonicalizedLocale[0];
}
Expand Down

0 comments on commit dc45b6c

Please sign in to comment.