Skip to content

Commit

Permalink
Apply Google Java Style Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiser-Yang authored and github-actions[bot] committed Oct 22, 2024
1 parent 263e7b8 commit df36a29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/edu/cmipt/gcs/controller/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ public class UserController {
description = "User not found",
content = @Content(schema = @Schema(implementation = ErrorVO.class)))
})
public UserVO getUser(@RequestParam("user") String user, @RequestParam("userType") String userType) {
public UserVO getUser(
@RequestParam("user") String user, @RequestParam("userType") String userType) {
if (!userType.equals("id") && !userType.equals("username") && !userType.equals("email")) {
throw new GenericException(ErrorCodeEnum.MESSAGE_CONVERSION_ERROR);
}
Expand Down

0 comments on commit df36a29

Please sign in to comment.