[Bps-public-commit] r17428 - in Net-Google-Code/trunk: lib/Net/Google/Code

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Dec 30 04:52:40 EST 2008


Author: sunnavy
Date: Tue Dec 30 04:52:40 2008
New Revision: 17428

Modified:
   Net-Google-Code/trunk/   (props changed)
   Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm

Log:
 r18351 at sunnavys-mb:  sunnavy | 2008-12-30 15:32:25 +0800
 _fetch can return content, no need to call ->mech


Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm	Tue Dec 30 04:52:40 2008
@@ -42,9 +42,7 @@
     my $self = shift;
     my ($id) = validate_pos( @_, { type => SCALAR } );
     $self->state->{id} = $id;
-    $self->connection->_fetch( "/issues/detail?id=" . $id );
-
-    my $content = $self->connection->mech->content;
+    my $content = $self->connection->_fetch( "/issues/detail?id=" . $id );
     require HTML::TreeBuilder;
     my $tree    = HTML::TreeBuilder->new;
     $tree->parse_content($content);



More information about the Bps-public-commit mailing list