From f5d9260a7c3169250a1d99b27096969e204bcce7 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sun, 29 Mar 2009 03:06:12 -0400 Subject: Shorten code a little. --- read_object.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/read_object.pl b/read_object.pl index e813cbc..22dd2cf 100755 --- a/read_object.pl +++ b/read_object.pl @@ -32,9 +32,7 @@ sub read_object { sub format_object { my ($type, $obj) = @_; - if ($type eq 'commit') { - $obj; - } elsif ($type eq 'tag') { + if ($type eq 'commit' || $type eq 'tag') { $obj; } elsif ($type eq 'tree') { format_tree($obj) -- cgit v1.2.3