mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-05 22:11:12 +08:00
Minor no-op refactoring
This commit is contained in:
parent
2f9a6acdb3
commit
e9c9ff02e4
@ -1188,7 +1188,7 @@ sub getCurve
|
||||
|
||||
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
|
||||
extraoptions => (!exists $options{curvestyle_hash}{$id} &&
|
||||
exists $options{curvestyleall}) ?
|
||||
@ -1199,9 +1199,10 @@ sub getCurve
|
||||
datastring => '',
|
||||
datastring_meta => [],
|
||||
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
|
||||
@ -1219,7 +1220,7 @@ sub getCurve
|
||||
exit -1;
|
||||
}
|
||||
|
||||
return $curves[-1];
|
||||
return $curve;
|
||||
}
|
||||
|
||||
return $curveFromID{$id};
|
||||
|
Loading…
Reference in New Issue
Block a user