Skip to content

Commit ab62302

Browse files
committed
lint: fix some code smell
1 parent 8f6fda5 commit ab62302

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/renderer/App.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ hr {
200200
display: flex;
201201
align-self: center;
202202
justify-content: center;
203-
justify-item: center;
204203
}
205204

206205
.cm-tooltip-autocomplete .cm-completionLabel {

src/renderer/contexts/SqlProtectionProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default function SqlProtectionProvider({ children }: PropsWithChildren) {
8383
className={'scroll'}
8484
>
8585
{confirmStatements.map((statement, idx) => (
86-
<div>
86+
<div key={idx}>
8787
<SyntaxHighlighter
8888
lineProps={{
8989
style: {

src/renderer/contexts/SwitchDatabaseProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function SwitchDatabaseProvider({
1818
if (
1919
statement.analyze.type === 'create' ||
2020
// only has delete, while drop is fired instead
21-
// @ts-expect-error TODO: fix this
21+
// @ts-expect-error fix this
2222
statement.analyze.type === 'drop' ||
2323
statement.analyze.type === 'alter'
2424
) {

0 commit comments

Comments
 (0)