Skip to content

Commit

Permalink
style: todo 주석 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
olivejua committed Aug 21, 2024
1 parent c0d6ee3 commit ac12666
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
@RequestMapping("/v1/tasks")
@RestController
public class TaskController {
// TODO spring boot validation 추가가 낫겠다. 일단 던지는 Exception에 대헤서 처리하고, Validation 도입하면 같이 붙여야지
@GetMapping("/{id}")
ResponseEntity<ApiResponse<TaskResponse>> getTask(@PathVariable("id") Long id) {
Assert.state(id >= 0, "The id value must be positive.");

// TODO Custom Exception 구현하기
// FIXME 서비스 로직 구현하면 제거하기
if (id == 0) {
throw new IllegalArgumentException("The given task with id does not exist.");
Expand Down

0 comments on commit ac12666

Please sign in to comment.