From 0ab4f568b57a56c53ee4f7a9c3e529c14cb8ae4c Mon Sep 17 00:00:00 2001 From: James Wampler Date: Mon, 17 Aug 2026 22:54:09 -0700 Subject: [PATCH] Drop braces on single-line conditionals in BeatService --- src/Novelly.Api/Beats/BeatService.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Novelly.Api/Beats/BeatService.cs b/src/Novelly.Api/Beats/BeatService.cs index 72cf5c1..c2df9c9 100644 --- a/src/Novelly.Api/Beats/BeatService.cs +++ b/src/Novelly.Api/Beats/BeatService.cs @@ -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);