Skip to content

Commit

Permalink
use default property instead of lazy builder
Browse files Browse the repository at this point in the history
to prevent empty string in CPAN test.
  • Loading branch information
mateu committed Jul 25, 2011
1 parent f65dbb5 commit 79dba89
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/Weather/Underground/Forecast.pm
Expand Up @@ -58,7 +58,7 @@ has 'raw_data' => (
has 'source_URL' => (
is => 'ro',
isa => 'Any',
lazy_build => 1,
'default' => 'http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=',
);

# When the location changes, we want to clear the data to insure a new data fetch will happen.
Expand Down Expand Up @@ -192,12 +192,6 @@ sub _build_raw_data {
return $content;
}

sub _build_source_URL {
my $self = shift;
return
'http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=';
}

__PACKAGE__->meta->make_immutable;
1

Expand Down

0 comments on commit 79dba89

Please sign in to comment.