From 3d36a33143b8fbed3f72dec7676782faeb58286e Mon Sep 17 00:00:00 2001
From: Alexandre P <apo@kereval.com>
Date: Fri, 5 Jan 2024 16:46:44 +0100
Subject: [PATCH] correct switch case

---
 .../interlay/validation/CustomPatientValidationService.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/matchbox-client/src/main/java/net/ihe/gazelle/matchbox/client/interlay/validation/CustomPatientValidationService.java b/matchbox-client/src/main/java/net/ihe/gazelle/matchbox/client/interlay/validation/CustomPatientValidationService.java
index 6939809..defffe6 100644
--- a/matchbox-client/src/main/java/net/ihe/gazelle/matchbox/client/interlay/validation/CustomPatientValidationService.java
+++ b/matchbox-client/src/main/java/net/ihe/gazelle/matchbox/client/interlay/validation/CustomPatientValidationService.java
@@ -59,11 +59,12 @@ public class CustomPatientValidationService implements ValidationService {
             switch (issue.getSeverity()) {
                 case FATAL:
                 case ERROR:
-                case NULL: {
+                case NULL:
                     validationReport.setOverallResult(ValidationTestResult.FAILED);
-                }
+                    break;
                 default:
                     validationReport.setOverallResult(ValidationTestResult.PASSED);
+                    break;
             }
         }
     }
-- 
GitLab