This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove redundant conditional added by e530fb81d
authorFather Chrysostomos <sprout@cpan.org>
Thu, 11 Nov 2010 13:12:35 +0000 (05:12 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 11 Nov 2010 13:22:49 +0000 (05:22 -0800)
The else is never reached if the assignment in the protasis succeeds.

pp.c

diff --git a/pp.c b/pp.c
index 4ae130b..9e762d5 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -901,7 +901,7 @@ PP(pp_undef)
                 mro_isa_changed_in(stash);
             else if(method_changed)
                 mro_method_changed_in(
-                 stash ? stash : GvSTASH((const GV *)sv)
+                 GvSTASH((const GV *)sv)
                 );
 
            break;