Skip to content

Commit dc87ab1

Browse files
committed
fix(Core): Fixed the DatabaseInitializer, which attempted to continue a non-existent loop
Signed-off-by: Charles d'Avernas <[email protected]>
1 parent f002f6a commit dc87ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/Synapse.Core.Infrastructure/Services/DatabaseInitializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ await this.Database.CreateResourceAsync(new ServiceAccount()
5757
}, false, cancellationToken).ConfigureAwait(false);
5858
await this.Database.InitializeAsync(cancellationToken);
5959
}
60-
catch (ProblemDetailsException ex) when (ex.Problem.Status == (int)HttpStatusCode.Conflict || (ex.Problem.Status == (int)HttpStatusCode.BadRequest && ex.Problem.Title == "Conflict")) { continue; }
60+
catch (ProblemDetailsException ex) when (ex.Problem.Status == (int)HttpStatusCode.Conflict || (ex.Problem.Status == (int)HttpStatusCode.BadRequest && ex.Problem.Title == "Conflict")) { }
6161
}
6262

6363
}

0 commit comments

Comments
 (0)