Ver código fonte

Dpkg::Gettext: Use parenthesis on carp call to tell perl it is a function

Because we are using 'require' instead of 'use', perl does not know that
the symbol is a function instead of a bareword.
Guillem Jover 11 anos atrás
pai
commit
046ad86833
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      scripts/Dpkg/Gettext.pm

+ 1 - 1
scripts/Dpkg/Gettext.pm

@@ -101,7 +101,7 @@ sub _g ## no critic (Subroutines::ProhibitUnusedPrivateSubroutines)
     my $msgid = shift;
 
     require Carp;
-    Carp::carp 'obsolete _g() function, please use g_() instead';
+    Carp::carp('obsolete _g() function, please use g_() instead');
 
     return g_($msgid);
 }