Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Dec 16, 2024
1 parent 1f7ec2c commit 3bee71c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/components/ActiveLocales.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ export function ActiveLocales( {
);

if ( languages[ foundIndex - 1 ] ) {
setSelectedLanguage(
languages[foundIndex - 1]
);
setSelectedLanguage( languages[ foundIndex - 1 ] );

Check warning on line 76 in src/components/ActiveLocales.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/ActiveLocales.tsx#L76

Added line #L76 was not covered by tests
}
} );

Expand All @@ -91,9 +89,7 @@ export function ActiveLocales( {
);

if ( languages[ foundIndex + 1 ] ) {
setSelectedLanguage(
languages[foundIndex + 1]
);
setSelectedLanguage( languages[ foundIndex + 1 ] );

Check warning on line 92 in src/components/ActiveLocales.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/ActiveLocales.tsx#L92

Added line #L92 was not covered by tests
}
} );

Expand Down
5 changes: 4 additions & 1 deletion src/components/PreferredLanguages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ function PreferredLanguages( props: PreferredLanguagesProps ) {
registerShortcut( {
name: 'preferred-languages/select-previous',
category: 'global',
description: __( 'Select previous language', 'preferred-languages' ),
description: __(
'Select previous language',
'preferred-languages'
),
keyCombination: {
character: 'ArrowUp',
},
Expand Down

0 comments on commit 3bee71c

Please sign in to comment.