fix: linter
Some checks failed
Format / formatting (push) Failing after 5s
Build / build (push) Successful in 27s
CI / build (push) Successful in 10s

This commit is contained in:
Théo Le Lez 2025-03-12 12:23:27 +01:00
parent 307c7e700b
commit 78c72bdd72

View File

@ -10,7 +10,6 @@ import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.oauth2.jwt.Jwt; import org.springframework.security.oauth2.jwt.Jwt;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
@SpringBootApplication @SpringBootApplication
@ -84,8 +83,10 @@ public class SharedApi {
@PathVariable int appointmentId, @AuthenticationPrincipal Jwt principal) { @PathVariable int appointmentId, @AuthenticationPrincipal Jwt principal) {
try { try {
sharedApiService.getPDFReport(appointmentId, principal.getClaimAsString("email")); sharedApiService.getPDFReport(appointmentId, principal.getClaimAsString("email"));
} catch (FileNotFoundException | DocumentException e) { } catch (FileNotFoundException e) {
System.out.println(e); System.out.println(e + "File not found");
} catch (DocumentException e) {
System.out.println(e + "Document exception");
} }
} }