Commits

Toby Inkster committed 6675478

add missing "return" keyword

  • Participants
  • Parent commits d72d981

Comments (0)

Files changed (1)

File lib/MooX/late.pm

 		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)");