From 051f0e6ca29a8f5d5d10beb536d9b970ca2e81e8 Mon Sep 17 00:00:00 2001 From: Dominic Need Date: Mon, 4 Sep 2023 16:23:36 +0100 Subject: [PATCH] Added default to switch statement --- Dfe.Academies.Academisation.Domain/ProjectAggregate/Project.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dfe.Academies.Academisation.Domain/ProjectAggregate/Project.cs b/Dfe.Academies.Academisation.Domain/ProjectAggregate/Project.cs index b7ae5d786..a1d457ee3 100644 --- a/Dfe.Academies.Academisation.Domain/ProjectAggregate/Project.cs +++ b/Dfe.Academies.Academisation.Domain/ProjectAggregate/Project.cs @@ -353,7 +353,8 @@ public CommandResult Update(ProjectDetails detailsToUpdate) return grantAmountChanged switch { true => reason, - false => null + false => null, + _ => reason }; } }