Drop braces on single-line conditionals in BeatService

This commit is contained in:
James Wampler
2026-08-17 22:54:09 -07:00
parent bc85a36e18
commit 0ab4f568b5
+2 -8
View File
@@ -183,10 +183,7 @@ public class BeatService(
await RequireBeatAccessAsync(beat, ProjectPermission.DeleteContent, ct);
var chapter = await db.Chapters.FirstOrDefaultAsync(c => c.Id == beat.ChapterId, ct);
if (chapter is not null)
{
chapter.UpdatedAt = DateTimeOffset.UtcNow;
}
if (chapter is not null) chapter.UpdatedAt = DateTimeOffset.UtcNow;
db.Beats.Remove(beat);
await db.SaveChangesAsync(ct);
@@ -225,10 +222,7 @@ public class BeatService(
}
var chapter = await db.Chapters.FirstOrDefaultAsync(c => c.Id == chapterId, ct);
if (chapter is not null)
{
chapter.UpdatedAt = DateTimeOffset.UtcNow;
}
if (chapter is not null) chapter.UpdatedAt = DateTimeOffset.UtcNow;
await db.SaveChangesAsync(ct);
return await ListAsync(chapterId, ct);