Use 1 line of code in place of 6 in Perl_sv_derived_from().
Nicholas Clark [Thu, 11 Sep 2008 21:27:07 +0000 (21:27 +0000)]
p4raw-id: //depot/perl@34350

universal.c

index c6de960..3e52535 100644 (file)
@@ -116,12 +116,7 @@ Perl_sv_derived_from(pTHX_ SV *sv, const char *const name)
         stash = gv_stashsv(sv, 0);
     }
 
-    if (stash) {
-       return isa_lookup(stash, name);
-    }
-    else
-       return FALSE;
-
+    return stash ? isa_lookup(stash, name) : FALSE;
 }
 
 /*