Skip to content

Commit

Permalink
[fix] LevelInformationProtoUtil 버그 수정
Browse files Browse the repository at this point in the history
- clear 순서로 인해 세팅안되는 부분 수정.
  • Loading branch information
isanghaessi committed Aug 16, 2023
1 parent bd3b4f5 commit 1d11641
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public static LevelInformationProto toLevelInformationProto(

LevelInformationProto.Builder builder = LevelInformationProto
.newBuilder()
.clear()
.setTotal(total)
.setGiven(given)
.setTaken(taken)
.clear();
.setTaken(taken);

if (Objects.nonNull(relationshipLevel.getLevel())) {
builder.setLevel(relationshipLevel.getLevel());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ public static Mind toMindWithImageLink(
public static MindPutResponseProto toMindPutResponseProto(
Mind relationship) {
if (Objects.isNull(relationship)) {
return MindPutResponseProto.newBuilder()
return MindPutResponseProto
.newBuilder()
.clear()
.build();
}
Expand Down

0 comments on commit 1d11641

Please sign in to comment.