From fb87a276e184660885878806e5be5d04427f315e Mon Sep 17 00:00:00 2001 From: Edoardo Rosa <6991986+notdodo@users.noreply.github.com> Date: Sun, 12 Nov 2023 15:56:57 +0100 Subject: [PATCH] fix lint: consistency --- pkg/infra/neo4j/neo4j_client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/infra/neo4j/neo4j_client.go b/pkg/infra/neo4j/neo4j_client.go index 40de342..55e8e81 100644 --- a/pkg/infra/neo4j/neo4j_client.go +++ b/pkg/infra/neo4j/neo4j_client.go @@ -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 {