Skip to content

Commit

Permalink
fix: 불필요한 정렬 삭제 (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
EunjiShin authored Jul 19, 2024
1 parent 796ec92 commit 9c9b4eb
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.depromeet.spot.usecase.service.seat;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

import org.depromeet.spot.domain.block.Block;
Expand Down Expand Up @@ -48,7 +47,6 @@ public void createAllInBlock(final Long blockId) {
public List<Seat> createAutoIncrementSeats(
Block block, Stadium stadium, Section section, List<BlockRow> rows) {
List<Seat> seats = new ArrayList<>();
rows.sort(Comparator.comparingInt(BlockRow::getNumber));

int blockSeatNum = BLOCK_SEAT_START_NUM;
for (BlockRow row : rows) {
Expand Down

0 comments on commit 9c9b4eb

Please sign in to comment.