From 7bf68ba634163c2c7cefa220f49802574fb74a96 Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 19 Jul 2013 17:51:01 +0200 Subject: Simplyfy rdf2events::objectdescribe(). --- bin/rdf2events | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/rdf2events b/bin/rdf2events index c8ed4da..a66b517 100755 --- a/bin/rdf2events +++ b/bin/rdf2events @@ -194,12 +194,11 @@ sub thingdescribe { } sub objectdescribe { - my ($title, $thing, $uri) = @_; + my ($title, $thing, $urinode) = @_; return undef unless ($thing); - return thingdescribe( $title, $thing->literal_value, undef ) - unless ($uri); - return thingdescribe( $title, $thing->literal_value, node2uri($uri) ); + + return thingdescribe( $title, $thing->literal_value, node2uri($urinode) ); } sub node2uri { -- cgit v1.2.3