Skip to content

Commit

Permalink
Removed the double method usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr1stal423 committed Dec 4, 2024
1 parent b0fc84e commit ada75f4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions service/src/main/java/greencity/service/EventServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public class EventServiceImpl implements EventService {
@Override
public EventDto save(AddEventDtoRequest addEventDtoRequest, String email,
MultipartFile[] images) {
checkingEqualityDateTimeInEventDateLocationDto(addEventDtoRequest.getDatesLocations());
validateEventRequest(addEventDtoRequest);
Event toSave = modelMapper.map(addEventDtoRequest, Event.class);
UserVO userVO = restClient.findByEmail(email);
Expand Down Expand Up @@ -603,7 +602,6 @@ private void addNewImages(Event toUpdate, UpdateEventDto updateEventDto, Multipa

private void validateEventRequest(AddEventDtoRequest addEventDtoRequest) {
checkingEqualityDateTimeInEventDateLocationDto(addEventDtoRequest.getDatesLocations());

if (!validateCoordinates(addEventDtoRequest.getDatesLocations())) {
throw new BadRequestException(ErrorMessage.INVALID_COORDINATES);
}
Expand Down

0 comments on commit ada75f4

Please sign in to comment.