Skip to content

Commit 71ed5bf

Browse files
authored
Simplify Post creation method call
1 parent 08173cd commit 71ed5bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/com/back/web7_9_codecrete_be/domain/community/post/entity

src/main/java/com/back/web7_9_codecrete_be/domain/community/post/entity/Post.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private Post(Long userId, String nickname, String title, String content, PostCat
7575
}
7676

7777
public static Post create(Long userId, String nickname, String title, String content, PostCategory category) {
78-
return com.back.web7_9_codecrete_be.domain.community.post.entity.Post.builder()
78+
return Post.builder()
7979
.userId(userId)
8080
.nickname(nickname)
8181
.title(title)

0 commit comments

Comments
 (0)