Skip to content

Commit

Permalink
Only require UUID package if used.
Browse files Browse the repository at this point in the history
It is not always installed.
  • Loading branch information
dracos committed Oct 4, 2023
1 parent b54183d commit fdedc8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perllib/FixMyStreet/Roles/CobrandEcho.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use DateTime;
use DateTime::Format::Strptime;
use Moo::Role;
use Sort::Key::Natural qw(natkeysort_inplace);
use UUID::Tiny ':std';
use FixMyStreet::DateRange;
use FixMyStreet::WorkingDays;
use Open311::GetServiceRequestUpdates;
Expand Down Expand Up @@ -659,7 +658,8 @@ sub find_available_bulky_slots {
my $guid_key = $self->council_url . ":echo:bulky_event_guid:" . $property->{id};
my $guid = $self->{c}->session->{$guid_key};
unless ($guid) {
$self->{c}->session->{$guid_key} = $guid = UUID::Tiny::create_uuid_as_string;
require UUID::Tiny;
$self->{c}->session->{$guid_key} = $guid = UUID::Tiny::create_uuid_as_string();
}

my $window = $self->_bulky_collection_window($last_earlier_date_str);
Expand Down

0 comments on commit fdedc8a

Please sign in to comment.