Skip to content

Commit ee1704c

Browse files
authored
Merge pull request #419 from depromeet/develop
v1.3.9.2
2 parents 477fea9 + 7c4d669 commit ee1704c

File tree

1 file changed

+1
-5
lines changed
  • layer-domain/src/main/java/org/layer/domain/answer/entity

1 file changed

+1
-5
lines changed

layer-domain/src/main/java/org/layer/domain/answer/entity/Answers.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,7 @@ public int getGoalCompletionRate(Long questionId) {
138138
}
139139
}
140140

141-
if (count == ZERO) {
142-
throw new AnswerException(NOT_CONTAIN_ANSWERS);
143-
}
144-
145-
return sum / count;
141+
return count == ZERO ? 0 : sum / count;
146142
}
147143

148144
public int getScoreCount(Long questionId, int score, Long memberId) {

0 commit comments

Comments
 (0)