Skip to content

Commit

Permalink
instanceof returns a sub and may not be in a sub
Browse files Browse the repository at this point in the history
  • Loading branch information
wchristian committed Dec 19, 2012
1 parent 1d32402 commit 7f69ecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Email/Sender/Success/Partial.pm
Expand Up @@ -16,7 +16,7 @@ use Email::Sender::Failure::Multi;

has failure => (
is => 'ro',
isa => sub { InstanceOf['Email::Sender::Failure::Multi'] },
isa => InstanceOf['Email::Sender::Failure::Multi'],
required => 1,
);

Expand Down
2 changes: 1 addition & 1 deletion lib/Email/Sender/Transport/Print.pm
Expand Up @@ -16,7 +16,7 @@ use MooX::Types::MooseLike::Base qw(InstanceOf);

has 'fh' => (
is => 'ro',
isa => sub { InstanceOf['IO::Handle'] },
isa => InstanceOf['IO::Handle'],
required => 1,
default => sub { IO::Handle->new_from_fd(fileno(STDOUT), 'w') },
);
Expand Down

0 comments on commit 7f69ecd

Please sign in to comment.