Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Sep 16, 2024
1 parent d113c81 commit 361f390
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions get.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ const returnNextProperty = (
{
get(target, prop1) {
if (prop1 === "then")
return returnNextProperty(languagesStringsToUse, fallbackLanguagesStrings);
return returnNextProperty(
languagesStringsToUse,
fallbackLanguagesStrings
);
const currentCursor = cursor ? `${cursor}.${prop1}` : prop1;
const toReturn = readObject(languagesStringsToUse, currentCursor)
? readObject(languagesStringsToUse, currentCursor)
Expand Down Expand Up @@ -63,10 +66,10 @@ const languageTypeProxy = (language, type) => {
const languagesStringsToUse = selectedLanguagesStrings?.default
? selectedLanguagesStrings.default
: fallbackLanguagesStrings.default;
return returnNextProperty(
languagesStringsToUse,
fallbackLanguagesStrings
);
return returnNextProperty(
languagesStringsToUse,
fallbackLanguagesStrings
);
},
}
);
Expand Down

0 comments on commit 361f390

Please sign in to comment.