Commit 79fbb9d 1 parent 03a3640 commit 79fbb9d Copy full SHA for 79fbb9d
File tree 1 file changed +2
-3
lines changed
lib/MusicBrainz/Server/Entity
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
package MusicBrainz::Server::Entity::RelationshipLinkTypeGroup ;
2
2
3
3
use Moose;
4
+ use MusicBrainz::Server::Constants qw( :direction ) ;
4
5
use MusicBrainz::Server::Data::Utils qw( boolean_to_json ) ;
5
6
use MusicBrainz::Server::Entity::Types;
6
7
use MusicBrainz::Server::Entity::Util::JSON qw( add_linked_entity ) ;
@@ -60,9 +61,7 @@ sub TO_JSON {
60
61
my ($self ) = @_ ;
61
62
62
63
my $link_type_id = $self -> link_type_id + 0;
63
- my $direction =
64
- ($self -> direction == $MusicBrainz::Server::Entity::Relationship::DIRECTION_BACKWARD )
65
- ? ' backward' : ' forward' ;
64
+ my $direction = $self -> direction == $DIRECTION_BACKWARD ? ' backward' : ' forward' ;
66
65
my $is_loaded = boolean_to_json($self -> is_loaded);
67
66
my $total_relationships = $self -> total_relationships + 0;
68
67
my $limit = $self -> limit + 0;
You can’t perform that action at this time.
0 commit comments