Skip to content

Commit

Permalink
fix lint: consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
notdodo committed Nov 12, 2023
1 parent 8e0412e commit fb87a27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/infra/neo4j/neo4j_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ type neo4jClient struct {
/* #nosec */
//nolint:all
func (c *neo4jClient) setUpDb(session neo4j.SessionWithContext) {
session.Run(context.TODO(), `MATCH (n) DETACH DELETE n;`, nil)
session.Run(context.TODO(), "CREATE CONSTRAINT IF NOT EXISTS ON (u:User) ASSERT u.Id IS UNIQUE", nil)
session.Run(context.TODO(), "CREATE CONSTRAINT IF NOT EXISTS ON (g:Group) ASSERT g.Id IS UNIQUE", nil)
session.Run(context.TODO(), "MATCH (n) DETACH DELETE n;", nil)
session.Run(context.TODO(), "CREATE CONSTRAINT IF NOT EXISTS ON (u:User) ASSERT u.Id IS UNIQUE;", nil)
session.Run(context.TODO(), "CREATE CONSTRAINT IF NOT EXISTS ON (g:Group) ASSERT g.Id IS UNIQUE;", nil)
}

func NewNeo4jClient(dbUri, username, password string) Neo4jClient {
Expand Down

0 comments on commit fb87a27

Please sign in to comment.