Skip to content

Commit

Permalink
Merge pull request #18 from neo4j-labs/feature/needle2.3.0
Browse files Browse the repository at this point in the history
Fixed eslint + format
  • Loading branch information
msenechal authored Jan 16, 2024
2 parents 21876dd + 5227dfb commit c9abe4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function Header({ themeMode, toggleTheme }: { themeMode: string;
>
<Typography variant='h6' component='a' href='#app-bar-with-responsive-menu' sx={{}}>
<img
src={themeMode === 'dark' ? Neo4jLogoBW : Neo4jLogoColor }
src={themeMode === 'dark' ? Neo4jLogoBW : Neo4jLogoColor}
style={{ height: '32px', minHeight: '32px', minWidth: '32px' }}
alt='Neo4j Logo'
/>
Expand Down
3 changes: 2 additions & 1 deletion src/utils/Driver.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */

Check failure on line 1 in src/utils/Driver.tsx

View workflow job for this annotation

GitHub Actions / build-test (18.x)

Parameter 'connectionURI' implicitly has an 'any' type.

Check failure on line 1 in src/utils/Driver.tsx

View workflow job for this annotation

GitHub Actions / build-test (18.x)

Parameter 'username' implicitly has an 'any' type.

Check failure on line 1 in src/utils/Driver.tsx

View workflow job for this annotation

GitHub Actions / build-test (18.x)

Parameter 'password' implicitly has an 'any' type.

Check failure on line 1 in src/utils/Driver.tsx

View workflow job for this annotation

GitHub Actions / build-test (18.x)

'serverInfo' is declared but its value is never read.

Check failure on line 1 in src/utils/Driver.tsx

View workflow job for this annotation

GitHub Actions / build-test (18.x)

'err' is of type 'unknown'.

Check failure on line 1 in src/utils/Driver.tsx

View workflow job for this annotation

GitHub Actions / build-test (18.x)

'err' is of type 'unknown'.
import neo4j, { Driver } from 'neo4j-driver';

let driver: Driver;
Expand All @@ -19,7 +20,7 @@ export async function setDriver(connectionURI, username, password) {

export async function disconnect() {
try {
driver.close();
await driver.close();
return true;
} catch (err) {
console.error(`Disconnection error\n${err}\nCause: ${err.cause}`);
Expand Down

0 comments on commit c9abe4e

Please sign in to comment.