Skip to content

Commit 0b93fa1

Browse files
committed
delete try catch
1 parent d215359 commit 0b93fa1

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

slo/src/Linq2db.Slo/SloTableContext.cs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ protected override async Task Create(Linq2dbClient client, int operationTimeout)
3131
{
3232
await using var db = client.Open();
3333
db.CommandTimeout = operationTimeout;
34-
35-
try
36-
{
37-
await db.ExecuteAsync($@"
34+
35+
await db.ExecuteAsync($@"
3836
CREATE TABLE `{SloTable.Name}` (
3937
Guid Uuid,
4038
Id Int32,
@@ -43,14 +41,8 @@ await db.ExecuteAsync($@"
4341
PayloadTimestamp Timestamp,
4442
PRIMARY KEY (Guid, Id)
4543
)");
46-
}
47-
catch
48-
{
49-
// ignored
50-
}
5144

52-
if (!string.IsNullOrWhiteSpace(SloTable.Options))
53-
await db.ExecuteAsync(SloTable.Options);
45+
await db.ExecuteAsync(SloTable.Options);
5446
}
5547

5648
protected override async Task<int> Save(Linq2dbClient client, SloTable sloTable, int writeTimeout)

0 commit comments

Comments
 (0)