]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Don't let coverage be distracted by such pesky trivialities
authorVincent Pit <vince@profvince.com>
Sun, 28 Dec 2008 17:56:51 +0000 (18:56 +0100)
committerVincent Pit <vince@profvince.com>
Sun, 28 Dec 2008 17:56:51 +0000 (18:56 +0100)
Upper.xs

index 8814d9dd831bba9384865f2a38f35ca045cf8ea9..264bfdad3b712a7d3423a9a49c98e82c4ba838b3 100644 (file)
--- a/Upper.xs
+++ b/Upper.xs
@@ -76,8 +76,7 @@ STATIC I32 su_av_preeminent(pTHX_ AV *av, I32 key) {
  MAGIC *mg;
  HV *stash;
 
- if (!av)
-  return 0;
+ if (!av) return 0;
  if (SvCANEXISTDELETE(av))
   return av_exists(av, key);
 
@@ -131,8 +130,7 @@ STATIC I32 su_hv_preeminent(pTHX_ HV *hv, SV *keysv) {
  MAGIC *mg;
  HV *stash;
 
- if (!hv)
-  return 0;
+ if (!hv) return 0;
  if (SvCANEXISTDELETE(hv) || mg_find((SV *) hv, PERL_MAGIC_env))
   return hv_exists_ent(hv, keysv, 0);