summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-07-05 09:03:55 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-07-05 09:03:55 +0200
commit2a243ddb2ec46190f760a7569159cb27ccf1fe64 (patch)
tree56e738a65b41f7b2c3772af6055ff1a65805f935
parent11f3136cb8634d13dc47fca7d27281825ec81bcc (diff)
perltidy
-rwxr-xr-xbin/db-iris2
-rw-r--r--lib/Travel/Status/DE/IRIS.pm12
2 files changed, 7 insertions, 7 deletions
diff --git a/bin/db-iris b/bin/db-iris
index 9e1b649..d8f9331 100755
--- a/bin/db-iris
+++ b/bin/db-iris
@@ -78,7 +78,7 @@ if ($date) {
if ( $date eq 'tomorrow' ) {
$datetime->add( days => 1 );
}
- elsif (not( defined $day and defined $month )
+ elsif ( not( defined $day and defined $month )
or ( $day < 1 )
or ( $day > 31 )
or ( $month < 1 )
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm
index eb154c1..a496716 100644
--- a/lib/Travel/Status/DE/IRIS.pm
+++ b/lib/Travel/Status/DE/IRIS.pm
@@ -448,13 +448,13 @@ sub get_station_p {
);
return;
}
- )->catch(
+ )->catch(
sub {
my ($err) = @_;
$promise->reject($err);
return;
}
- )->wait;
+ )->wait;
return $promise;
}
@@ -672,13 +672,13 @@ sub get_timetable_p {
$promise->resolve;
return;
}
- )->catch(
+ )->catch(
sub {
my ($err) = @_;
$promise->reject($err);
return;
}
- )->wait;
+ )->wait;
return $promise;
}
@@ -736,13 +736,13 @@ sub get_realtime_p {
$promise->resolve;
return;
}
- )->catch(
+ )->catch(
sub {
my ($err) = @_;
$promise->reject("Failed to fetch realtime data: $err");
return;
}
- )->wait;
+ )->wait;
return $promise;
}