Skip to content

Commit

Permalink
style: fix variable name and funtion
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoa committed May 10, 2024
1 parent 82b3df0 commit 4c50878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/react/hooks/paragon/useParagonThemeCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ const useParagonThemeCore = ({
coreThemeLink = createCoreThemeLink(coreThemeFallbackUrl, { isFallbackThemeUrl: true, isBrandOverride });
const otherExistingLinks = getExistingCoreThemeLinks(isBrandOverride);
removeExistingLinks(otherExistingLinks);
const foundParagonThemCoreLink = getParagonThemeCoreLink();
if (foundParagonThemCoreLink) {
foundParagonThemCoreLink.insertAdjacentElement(
const foundParagonThemeCoreLink = getParagonThemeCoreLink();
if (foundParagonThemeCoreLink) {
foundParagonThemeCoreLink.insertAdjacentElement(

Check warning on line 90 in src/react/hooks/paragon/useParagonThemeCore.js

View check run for this annotation

Codecov / codecov/patch

src/react/hooks/paragon/useParagonThemeCore.js#L90

Added line #L90 was not covered by tests
'afterend',
coreThemeLink,
);
Expand Down
4 changes: 1 addition & 3 deletions src/react/hooks/useAppEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ const useAppEvent = (type, callback) => {
useEffect(() => {
const subscriptionToken = subscribe(type, callback);

return function cleanup() {
unsubscribe(subscriptionToken);
};
return () => unsubscribe(subscriptionToken);
}, [callback, type]);
};

Expand Down

0 comments on commit 4c50878

Please sign in to comment.