Skip to content

Commit

Permalink
refactor: 연관관계 도움 메서드 반환깂 없도록 변경 (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
bperhaps committed Jul 28, 2021
1 parent 36df973 commit 4b0c903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -47,9 +47,8 @@ public Comment writeBy(User user) {
return this;
}

public Comment belongTo(Post post) {
public void belongTo(Post post) {
this.post = post;
return this;
}

public Long getId() {
Expand Down
Expand Up @@ -31,9 +31,8 @@ public Image(String url) {
this.url = url;
}

public Image belongTo(Post post) {
public void belongTo(Post post) {
this.post = post;
return this;
}

public String getUrl() {
Expand Down

0 comments on commit 4b0c903

Please sign in to comment.