Minor no-op refactoring

This commit is contained in:
Dima Kogan 2019-10-20 19:33:27 -07:00
parent 2f9a6acdb3
commit e9c9ff02e4

View File

@ -1188,7 +1188,7 @@ sub getCurve
if( !exists $curveFromID{$id} ) if( !exists $curveFromID{$id} )
{ {
push @curves, {# if we have a catch-all style and no specific style, use my $curve = {# if we have a catch-all style and no specific style, use
# the catch-all style # the catch-all style
extraoptions => (!exists $options{curvestyle_hash}{$id} && extraoptions => (!exists $options{curvestyle_hash}{$id} &&
exists $options{curvestyleall}) ? exists $options{curvestyleall}) ?
@ -1199,9 +1199,10 @@ sub getCurve
datastring => '', datastring => '',
datastring_meta => [], datastring_meta => [],
datastring_offset => 0}; # push a curve with no data and no options datastring_offset => 0}; # push a curve with no data and no options
$curveFromID{$id} = $curves[-1]; push @curves, $curve; # push a curve with no data and no options
$curveFromID{$id} = $curve;
updateCurveOptions($curves[-1], $id); updateCurveOptions($curve, $id);
# --xlen has a meaning if we're not plotting histograms at all or if we're # --xlen has a meaning if we're not plotting histograms at all or if we're
@ -1219,7 +1220,7 @@ sub getCurve
exit -1; exit -1;
} }
return $curves[-1]; return $curve;
} }
return $curveFromID{$id}; return $curveFromID{$id};