Loading lib/Travel/Routing/DE/HAFAS.pm +5 −14 Original line number Diff line number Diff line Loading @@ -555,14 +555,10 @@ sub parse_trips { sub add_message { my ( $self, $json, $is_him ) = @_; my $short = $json->{txtS}; my $text = $json->{txtN}; my $type = $json->{type}; my $code = $json->{code}; my $prio = $json->{prio}; if ($is_him) { $short = $json->{head}; $text = $json->{text}; $code = $json->{hid}; } Loading @@ -580,12 +576,7 @@ sub add_message { } my $message = Travel::Status::DE::HAFAS::Message->new( short => $short, text => $text, type => $type, code => $code, prio => $prio, is_him => $is_him, json => $json, ref_count => 1, ); push( @{ $self->{messages} }, $message ); Loading Loading
lib/Travel/Routing/DE/HAFAS.pm +5 −14 Original line number Diff line number Diff line Loading @@ -555,14 +555,10 @@ sub parse_trips { sub add_message { my ( $self, $json, $is_him ) = @_; my $short = $json->{txtS}; my $text = $json->{txtN}; my $type = $json->{type}; my $code = $json->{code}; my $prio = $json->{prio}; if ($is_him) { $short = $json->{head}; $text = $json->{text}; $code = $json->{hid}; } Loading @@ -580,12 +576,7 @@ sub add_message { } my $message = Travel::Status::DE::HAFAS::Message->new( short => $short, text => $text, type => $type, code => $code, prio => $prio, is_him => $is_him, json => $json, ref_count => 1, ); push( @{ $self->{messages} }, $message ); Loading