mirror of
https://github.com/git/git
synced 2024-08-27 03:29:21 +00:00
perf/aggregate: fix checking ENV{GIT_PERF_SUBSECTION}
The way we check ENV{GIT_PERF_SUBSECTION} could trigger comparison between undef and "" that may be flagged by use of strict & warnings. Let's fix that. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
5d445f3416
commit
6f5ecad6a5
|
@ -70,7 +70,7 @@ sub format_times {
|
|||
}
|
||||
|
||||
my $resultsdir = "test-results";
|
||||
if ($ENV{GIT_PERF_SUBSECTION} ne "") {
|
||||
if (exists $ENV{GIT_PERF_SUBSECTION} and $ENV{GIT_PERF_SUBSECTION} ne "") {
|
||||
$resultsdir .= "/" . $ENV{GIT_PERF_SUBSECTION};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue