Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Dec 13, 2016
1 parent 031670f commit dd2493e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/MetaCPAN/Document/File.pm
Expand Up @@ -370,16 +370,18 @@ Autocomplete info for documentation.
=cut

has suggest => (
is => 'ro',
# isa => Maybe [HashRef], # remarked: breaks the suggester
is => 'ro',

# isa => Maybe [HashRef], # remarked: breaks the suggester
lazy => 1,
builder => '_build_suggest',
);

sub _build_suggest {
my $self = shift;
my $doc = $self->documentation;
# return +{} unless $doc; # remarked because of 'isa'

# return +{} unless $doc; # remarked because of 'isa'
return unless $doc;

my $weight = 1000 - length($doc);
Expand Down

0 comments on commit dd2493e

Please sign in to comment.