[libmoox-late-perl] 02/03: add missing "return" keyword
Intrigeri
intrigeri at moszumanska.debian.org
Thu Aug 14 11:13:44 UTC 2014
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 0.011
in repository libmoox-late-perl.
commit 21fd1c98ea88728fc632ed41b369b024f1a5e7d6
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date: Sat Apr 27 16:55:31 2013 +0100
add missing "return" keyword
---
lib/MooX/late.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/MooX/late.pm b/lib/MooX/late.pm
index e211f30..5e06cd6 100644
--- a/lib/MooX/late.pm
+++ b/lib/MooX/late.pm
@@ -249,13 +249,13 @@ sub _process_lazy_build
elsif (is_module_name($tc))
{
require Type::Utils;
- Type::Utils::class_type({ class => $tc });
+ return Type::Utils::class_type({ class => $tc });
}
require Type::Utils;
require Types::Standard;
my $warned = 0;
- Type::Utils::declare(
+ return Type::Utils::declare(
Type::Utils::as( Types::Standard::Any() ),
Type::Utils::where(sub {
$warned ||=1+!! carp("Type constraint '$tc' not fully enforced (defined at $ctx)");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmoox-late-perl.git
More information about the Pkg-perl-cvs-commits
mailing list