Skip to content
Snippets Groups Projects
Commit 23c7a0e6 authored by Dominika Zemanovičová's avatar Dominika Zemanovičová
Browse files

Fix small format issues

parent 49c753f9
No related branches found
No related tags found
3 merge requests!31M2,!28M2 user,!27Draft: M2 user
Pipeline #
......@@ -137,8 +137,7 @@ public class UserController {
@PutMapping("/{id}/languages")
public ResponseEntity<UserDto> addLanguage(@PathVariable @NotNull Long id, @Valid @RequestBody UserAddLanguageDto body) {
try {
var a = facade.addLanguageProficiency(id, body);
return ResponseEntity.ok(a);
return ResponseEntity.ok(facade.addLanguageProficiency(id, body));
} catch (EntityNotFoundException e) {
return ResponseEntity.notFound().build();
}
......
......@@ -38,7 +38,6 @@ public class UserFacade {
public UserDto create(UserCreateDto dto) {
var user = mapper.fromCreateDto(dto);
return mapper.toDto(service.create(user));
}
public void delete(Long id) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment