Skip to content

Commit

Permalink
chore: 매직 넘버 상수로 대체 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckkim817 committed Jan 24, 2025
1 parent 39b41de commit e4bafef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@ public SearchSuggestionListResponse fetchSearchSuggestions(final Double latitude
SUGGESTION_LIMIT
);

if (recentSpotSuggestion.size() < 5) {
int needed = 5 - recentSpotSuggestion.size();
if (recentSpotSuggestion.size() < SUGGESTION_LIMIT) {
int needed = SUGGESTION_LIMIT - recentSpotSuggestion.size();

List<SearchSuggestionResponse> nearestSpotList =
findNearestSpotList(longitude, latitude, SUGGESTION_RADIUS, SUGGESTION_LIMIT);
Expand Down

0 comments on commit e4bafef

Please sign in to comment.