Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
lysalexy committed Dec 19, 2023
1 parent e2da023 commit d67f5be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/org/example/service/user/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
@Service
@RequiredArgsConstructor
public class UserService {
private final UserAccountRepository userAccountRepository;
private final UserAccountRepository userAccountRepository;

public UserAccount getUserInfo(Long user_id) {
public UserAccount getUserInfo(Long user_id) {

Optional<UserAccount> user = userAccountRepository.findById(user_id);
if (user.isEmpty()) {
USER_NOT_FOUND.throwException();
}
return user.get();
Optional<UserAccount> user = userAccountRepository.findById(user_id);
if (user.isEmpty()) {
USER_NOT_FOUND.throwException();
}
return user.get();
}
}

0 comments on commit d67f5be

Please sign in to comment.