Skip to content

Commit

Permalink
refactor: (#513) 파라미터 2개인 메서드 선언부 개행 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdtls690 committed Sep 14, 2023
1 parent ddb8935 commit 5592f3a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ private void validateComment(
);
}

private void blindComment(
final ReportRequest request,
final Comment reportedComment
) {
private void blindComment(final ReportRequest request, final Comment reportedComment) {
final int reportCount = reportRepository.countByReportTypeAndTargetId(request.type(), request.id());
if (reportCount >= NUMBER_OF_COMMENT_BLIND_BASED_REPORTS) {
reportedComment.blind();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ public void report(final Member reporter, final ReportRequest request) {
changeNicknameByReport(reportedMember, request);
}

private void validateNickname(
final Member reporter,
final ReportRequest request
) {
private void validateNickname(final Member reporter, final ReportRequest request) {
validateMyNickname(reporter, request);
validateDuplicatedReport(
reporter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ private void validatePost(
);
}

private void blindPost(
final ReportRequest request,
final Post reportedPost
) {
private void blindPost(final ReportRequest request, final Post reportedPost) {
final int reportCount = reportRepository.countByReportTypeAndTargetId(request.type(), request.id());
if (reportCount >= NUMBER_OF_POST_BLIND_BASED_REPORTS) {
reportedPost.blind();
Expand Down

0 comments on commit 5592f3a

Please sign in to comment.