style(backend): apply dotnet format whitespace normalization
- Applied dotnet format to 24 files in backend/ - Corrects spacing, indentation, and formatting consistency - No functional changes to code logic Ultraworked with Sisyphus <https://github.com/code-yeongyu/oh-my-opencode> Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -56,7 +56,7 @@ public static class ShiftEndpoints
|
||||
ShiftService shiftService)
|
||||
{
|
||||
var result = await shiftService.GetShiftByIdAsync(id);
|
||||
|
||||
|
||||
if (result == null)
|
||||
return TypedResults.NotFound();
|
||||
|
||||
@@ -75,7 +75,7 @@ public static class ShiftEndpoints
|
||||
}
|
||||
|
||||
var (shift, error) = await shiftService.CreateShiftAsync(request, createdById);
|
||||
|
||||
|
||||
if (error != null || shift == null)
|
||||
return TypedResults.BadRequest(error ?? "Failed to create shift");
|
||||
|
||||
@@ -93,7 +93,7 @@ public static class ShiftEndpoints
|
||||
{
|
||||
if (error == "Shift not found")
|
||||
return TypedResults.NotFound();
|
||||
|
||||
|
||||
if (isConflict)
|
||||
return TypedResults.Conflict(error);
|
||||
}
|
||||
@@ -106,7 +106,7 @@ public static class ShiftEndpoints
|
||||
ShiftService shiftService)
|
||||
{
|
||||
var deleted = await shiftService.DeleteShiftAsync(id);
|
||||
|
||||
|
||||
if (!deleted)
|
||||
return TypedResults.NotFound();
|
||||
|
||||
@@ -130,10 +130,10 @@ public static class ShiftEndpoints
|
||||
{
|
||||
if (error == "Shift not found")
|
||||
return TypedResults.NotFound();
|
||||
|
||||
|
||||
if (error == "Cannot sign up for past shifts")
|
||||
return TypedResults.UnprocessableEntity(error);
|
||||
|
||||
|
||||
if (isConflict)
|
||||
return TypedResults.Conflict(error!);
|
||||
}
|
||||
@@ -158,7 +158,7 @@ public static class ShiftEndpoints
|
||||
{
|
||||
if (error == "Sign-up not found")
|
||||
return TypedResults.NotFound();
|
||||
|
||||
|
||||
return TypedResults.UnprocessableEntity(error!);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public static class TaskEndpoints
|
||||
TaskService taskService)
|
||||
{
|
||||
var result = await taskService.GetTaskByIdAsync(id);
|
||||
|
||||
|
||||
if (result == null)
|
||||
return TypedResults.NotFound();
|
||||
|
||||
@@ -66,7 +66,7 @@ public static class TaskEndpoints
|
||||
}
|
||||
|
||||
var (task, error) = await taskService.CreateTaskAsync(request, createdById);
|
||||
|
||||
|
||||
if (error != null || task == null)
|
||||
return TypedResults.BadRequest(error ?? "Failed to create task");
|
||||
|
||||
@@ -84,10 +84,10 @@ public static class TaskEndpoints
|
||||
{
|
||||
if (error == "Task not found")
|
||||
return TypedResults.NotFound();
|
||||
|
||||
|
||||
if (isConflict)
|
||||
return TypedResults.Conflict(error);
|
||||
|
||||
|
||||
return TypedResults.UnprocessableEntity(error);
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ public static class TaskEndpoints
|
||||
TaskService taskService)
|
||||
{
|
||||
var deleted = await taskService.DeleteTaskAsync(id);
|
||||
|
||||
|
||||
if (!deleted)
|
||||
return TypedResults.NotFound();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user