From 6d1c803940e74f41b2ba407241b05b16fae83801 Mon Sep 17 00:00:00 2001 From: Aidan Gordon Date: Sun, 1 Dec 2024 21:54:29 -0800 Subject: [PATCH] New and improved coverage. Even more than before! --- .../ca/bc/gov/nrs/wfprev/controllers/ProjectController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/controllers/ProjectController.java b/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/controllers/ProjectController.java index 115a0b348..2cc36725a 100644 --- a/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/controllers/ProjectController.java +++ b/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/controllers/ProjectController.java @@ -58,8 +58,7 @@ public ResponseEntity> getAllProjects() { ResponseEntity> response; try { - CollectionModel allProjects = projectService.getAllProjects(); - response = ok(allProjects); + response = ok(projectService.getAllProjects()); } catch (ServiceException e) { response = internalServerError(); log.error(" ### Error while fetching Projects", e);