Skip to content

Commit

Permalink
refactor: 선택을 0개부터 할 수 있도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
donghoony committed Jan 17, 2025
1 parent 9928686 commit e84b725
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class SelectionRange {
private int maxSelectionCount;

public SelectionRange(int minSelectionCount, int maxSelectionCount) {
if (minSelectionCount <= 0 || minSelectionCount > maxSelectionCount) {
if (minSelectionCount < 0 || minSelectionCount > maxSelectionCount) {
throw new InvalidSelectionRangeException(minSelectionCount, maxSelectionCount);
}
this.minSelectionCount = minSelectionCount;
Expand Down

0 comments on commit e84b725

Please sign in to comment.