Skip to content

Commit d7b2746

Browse files
committed
cleanup
1 parent 0b2efb4 commit d7b2746

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/Delta/DeltaExtensions_Shared.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,20 @@ internal static async Task<bool> HandleRequest(HttpContext context, ILogger logg
6868

6969
if (response.Headers.ETag.Count != 0)
7070
{
71-
WriteNo304Header(response, $"Response already has ETag", level, logger, path);
71+
WriteNo304Header(response, "Response already has ETag", level, logger, path);
7272
return false;
7373
}
7474

7575
if (response.IsImmutableCache())
7676
{
77-
WriteNo304Header(response, $"Response already has Cache-Control=immutable", level, logger, path);
77+
WriteNo304Header(response, "Response already has Cache-Control=immutable", level, logger, path);
7878
return false;
7979
}
8080

8181
if (shouldExecute != null &&
8282
!shouldExecute(context))
8383
{
84-
WriteNo304Header(response, $"shouldExecute=false", level, logger, path);
84+
WriteNo304Header(response, "shouldExecute=false", level, logger, path);
8585
return false;
8686
}
8787

@@ -110,7 +110,7 @@ internal static async Task<bool> HandleRequest(HttpContext context, ILogger logg
110110

111111
if (ifNoneMatch != etag)
112112
{
113-
WriteNo304Header(response, $"Request If-None-Match != ETag", level, logger, path);
113+
WriteNo304Header(response, "Request If-None-Match != ETag", level, logger, path);
114114
logger.Log(
115115
level,
116116
"""

src/Delta/DeltaExtensions_Sql.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static async Task<string> ExecutePostgres(DbCommand command, Cancel cancel = def
7373

7474
internal static async Task<string> ExecuteSqlLsn(DbCommand command, Cancel cancel = default)
7575
{
76-
command.CommandText = $"select log_end_lsn from sys.dm_db_log_stats(db_id())";
76+
command.CommandText = "select log_end_lsn from sys.dm_db_log_stats(db_id())";
7777
await using var reader = await command.ExecuteReaderAsync(CommandBehavior.SingleRow, cancel);
7878
var readAsync = await reader.ReadAsync(cancel);
7979
// for empty transaction log

src/DeltaTests/Usage.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ static async Task UpdateEntity(SqlConnection connection, Guid id)
8787
{
8888
await using var command = connection.CreateCommand();
8989
command.CommandText =
90-
$"""
91-
update Companies
92-
set Content = 'New Content Value'
93-
where Id = @Id;
94-
""";
90+
"""
91+
update Companies
92+
set Content = 'New Content Value'
93+
where Id = @Id;
94+
""";
9595
command.Parameters.AddWithValue("@Id", id);
9696
await command.ExecuteNonQueryAsync();
9797
}
@@ -144,7 +144,7 @@ insert into [Companies] (Id, Content)
144144
static async Task DeleteEntity(SqlConnection connection, Guid id)
145145
{
146146
await using var command = connection.CreateCommand();
147-
command.CommandText = $"delete From Companies where Id=@Id";
147+
command.CommandText = "delete From Companies where Id=@Id";
148148
command.Parameters.AddWithValue("@Id", id);
149149
await command.ExecuteNonQueryAsync();
150150
}

0 commit comments

Comments
 (0)