cleanup; perltidy

This commit is contained in:
Birte Kristina Friesel 2023-07-16 10:30:23 +02:00
parent 1e49ecf145
commit 40bec7774b
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -409,8 +409,7 @@ sub homepage {
connections => $connecting_trains,
transit_fyi => $transit_fyi,
);
$self->users->mark_seen(
uid => $self->current_user->{id} );
$self->users->mark_seen( uid => $uid );
}
)->catch(
sub {
@ -419,8 +418,7 @@ sub homepage {
user_status => $status,
journey_visibility => $journey_visibility,
);
$self->users->mark_seen(
uid => $self->current_user->{id} );
$self->users->mark_seen( uid => $uid );
}
)->wait;
return;
@ -431,14 +429,13 @@ sub homepage {
user_status => $status,
journey_visibility => $journey_visibility,
);
$self->users->mark_seen( uid => $self->current_user->{id} );
$self->users->mark_seen( uid => $uid );
return;
}
}
else {
@recent_targets = uniq_by { $_->{eva} }
$self->journeys->get_latest_checkout_stations(
uid => $self->current_user->{id} );
$self->journeys->get_latest_checkout_stations( uid => $uid );
}
$self->render(
'landingpage',
@ -447,13 +444,10 @@ sub homepage {
with_autocomplete => 1,
with_geolocation => 1
);
$self->users->mark_seen( uid => $self->current_user->{id} );
$self->users->mark_seen( uid => $uid );
}
else {
$self->render(
'landingpage',
intro => 1
);
$self->render( 'landingpage', intro => 1 );
}
}
@ -966,7 +960,7 @@ sub station {
}
}
)->wait;
$self->users->mark_seen( uid => $self->current_user->{id} );
$self->users->mark_seen( uid => $uid );
}
sub redirect_to_station {