Skip to content

Commit

Permalink
style: polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeyeonRoyce committed Jul 24, 2023
1 parent 2c87ec8 commit ed974e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public List<RestaurantQueryResponse> findAll(
RestaurantSearchCond restaurantSearchCond,
LocationSearchCond locationSearchCond
) {
List<Restaurant> restaurants = restaurantQueryRepository.getRestaurants(restaurantSearchCond,
locationSearchCond);
List<Restaurant> restaurants =
restaurantQueryRepository.getRestaurants(restaurantSearchCond, locationSearchCond);
List<Video> videos = findVideoByRestaurantIn(restaurants);
Map<Restaurant, List<Celeb>> celebs = mapToCeleb(groupingVideoByRestaurant(videos));
List<RestaurantImage> images = findImageByRestaurantIn(restaurants);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ public class LocationFixture {
public static final LocationSearchCond 박스_1_지점포함 = new LocationSearchCond(37.50, 37.52, 127.06, 127.08);
public static final LocationSearchCond 박스_1_2_지점포함 = new LocationSearchCond(37.50, 37.53, 127.06, 127.09);

public record Point(
Double latitude,
Double longitude
) {
}

public static boolean isRestaurantInArea(
LocationSearchCond locationSearchCond,
RestaurantQueryResponse restaurantQueryResponse
Expand All @@ -27,4 +21,10 @@ public static boolean isRestaurantInArea(
&& restaurantQueryResponse.longitude() <= locationSearchCond.highLongitude();
}

public record Point(
Double latitude,
Double longitude
) {
}

}

0 comments on commit ed974e8

Please sign in to comment.