mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 03:19:06 +00:00
Bug 914963 - Remove spurious defined(@array). r=gps
Perl warns against this; defined takes a scalar context so it has no effect on arrays; the correct thing is just to evaluate the array directly in the conditional.
This commit is contained in:
parent
856c484ab5
commit
0b50c9b3c3
@ -55,7 +55,7 @@ $MILESTONE_FILE = "$TOPSRCDIR/config/milestone.txt";
|
||||
#
|
||||
my $milestone = Moz::Milestone::getOfficialMilestone($MILESTONE_FILE);
|
||||
|
||||
if (defined(@TEMPLATE_FILE)) {
|
||||
if (@TEMPLATE_FILE) {
|
||||
my $TFILE;
|
||||
|
||||
foreach $TFILE (@TEMPLATE_FILE) {
|
||||
|
@ -55,7 +55,7 @@ $MILESTONE_FILE = "$TOPSRCDIR/config/milestone.txt";
|
||||
#
|
||||
my $milestone = Moz::Milestone::getOfficialMilestone($MILESTONE_FILE);
|
||||
|
||||
if (defined(@TEMPLATE_FILE)) {
|
||||
if (@TEMPLATE_FILE) {
|
||||
my $TFILE;
|
||||
|
||||
foreach $TFILE (@TEMPLATE_FILE) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user