MovingPercentile moved else to same line as }

This commit is contained in:
wangyix 2014-06-04 15:13:16 -07:00
parent 0da6374e19
commit 5251057ed6

View file

@ -34,8 +34,7 @@ void MovingPercentile::updatePercentile(float sample) {
// update _indexOfPercentile
float index = _percentile * (float)(_samplesSorted.size() - 1);
_indexOfPercentile = (int)(index + 0.5f); // round to int
}
else {
} else {
// find index of sample with id = _newSampleId and replace it with new sample
newSampleIndex = _sampleIds.indexOf(_newSampleId);
_samplesSorted[newSampleIndex] = sample;