From 5592f3ac2d0bbb64a33a7bed759b3271ef599595 Mon Sep 17 00:00:00 2001 From: JunH Date: Thu, 14 Sep 2023 17:29:57 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20(#513)=20=ED=8C=8C=EB=9D=BC?= =?UTF-8?q?=EB=AF=B8=ED=84=B0=202=EA=B0=9C=EC=9D=B8=20=EB=A9=94=EC=84=9C?= =?UTF-8?q?=EB=93=9C=20=EC=84=A0=EC=96=B8=EB=B6=80=20=EA=B0=9C=ED=96=89=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/service/strategy/ReportCommentStrategy.java | 5 +---- .../report/service/strategy/ReportNicknameStrategy.java | 5 +---- .../domain/report/service/strategy/ReportPostStrategy.java | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportCommentStrategy.java b/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportCommentStrategy.java index 964c1dece..5fa576365 100644 --- a/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportCommentStrategy.java +++ b/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportCommentStrategy.java @@ -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(); diff --git a/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportNicknameStrategy.java b/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportNicknameStrategy.java index 9d68dea45..7d3361fa9 100644 --- a/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportNicknameStrategy.java +++ b/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportNicknameStrategy.java @@ -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, diff --git a/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportPostStrategy.java b/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportPostStrategy.java index e3b2270a8..be85c7219 100644 --- a/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportPostStrategy.java +++ b/backend/src/main/java/com/votogether/domain/report/service/strategy/ReportPostStrategy.java @@ -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();