Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
pszymczyk committed Feb 1, 2020
1 parent 964e976 commit ec4ec2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/pszymczyk/TripService.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ class TripService {

private final TripRepository tripRepository;

public TripService(TripRepository tripRepository) {
TripService(TripRepository tripRepository) {
this.tripRepository = tripRepository;
}

public ReservationSummary book(String userId, String tripCode) {
ReservationSummary book(String userId, String tripCode) {
Trip trip = tripRepository.findTrip(tripCode);
if (trip == null) {
throw new TripNotFound(tripCode);
Expand Down

0 comments on commit ec4ec2c

Please sign in to comment.