refactor: Fix some code smells #26

Merged
jank merged 6 commits from refactor/fix-smells into main 2024-10-02 07:48:33 +00:00
Showing only changes of commit e5d0bcb84e - Show all commits

@ -19,7 +19,7 @@ public class WelcomeController {
}
@GetMapping("/roles")
public ResponseEntity<Collection<? extends GrantedAuthority>> getRoles(Authentication authentication) {
public ResponseEntity getRoles(Authentication authentication) {
return ResponseEntity.ok(authentication.getAuthorities());
}