From 4880f3829cd88516dbbb498eee717e6e30fe35c4 Mon Sep 17 00:00:00 2001 From: Pierre Tellier Date: Fri, 28 Feb 2025 11:47:45 +0100 Subject: [PATCH] I don't get it, how does it keeps failing with the formatter installed... time to create pre-commit hook I guess --- .../enseirb/myinpulse/service/EntrepreneurApiService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MyINPulse-back/src/main/java/enseirb/myinpulse/service/EntrepreneurApiService.java b/MyINPulse-back/src/main/java/enseirb/myinpulse/service/EntrepreneurApiService.java index 1bab1a1..61b16ab 100644 --- a/MyINPulse-back/src/main/java/enseirb/myinpulse/service/EntrepreneurApiService.java +++ b/MyINPulse-back/src/main/java/enseirb/myinpulse/service/EntrepreneurApiService.java @@ -31,8 +31,6 @@ public class EntrepreneurApiService { this.utilsService = utilsService; } - - public void editSectionCell(Long sectionCellId, SectionCell sectionCell, String mail) { SectionCell editSectionCell = sectionCellService.getSectionCellById(sectionCellId); if (editSectionCell == null) { @@ -40,7 +38,8 @@ public class EntrepreneurApiService { throw new ResponseStatusException( HttpStatus.NOT_FOUND, "Cette cellule de section n'existe pas"); } - if (!utilsService.isAllowedToCheckProject(mail, this.sectionCellService.getProjectId(sectionCellId))) { + if (!utilsService.isAllowedToCheckProject( + mail, this.sectionCellService.getProjectId(sectionCellId))) { logger.warn( "User {} tried to edit section cells {} of the project {} but is not allowed to.", mail, @@ -68,7 +67,8 @@ public class EntrepreneurApiService { throw new ResponseStatusException( HttpStatus.NOT_FOUND, "Cette cellule de section n'existe pas"); } - if (!utilsService.isAllowedToCheckProject(mail, this.sectionCellService.getProjectId(sectionCellId))) { + if (!utilsService.isAllowedToCheckProject( + mail, this.sectionCellService.getProjectId(sectionCellId))) { logger.warn( "User {} tried to remove section cells {} of the project {} but is not allowed to.", mail,