Skip to content

Commit

Permalink
Bug fix: Use return value of method (#5818)
Browse files Browse the repository at this point in the history
  • Loading branch information
feiyun0112 authored Jun 8, 2021
1 parent cf0502a commit 51b134a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ protected override IEnumerable<KeyValuePair<string, DataViewType>> GetAnnotation
Contracts.Assert(0 <= iinfo & iinfo < InfoCount);
var items = base.GetAnnotationTypesCore(iinfo);
if (!UseCounter[iinfo])
items.Prepend(BooleanDataViewType.Instance.GetPair(AnnotationUtils.Kinds.IsNormalized));
items = items.Prepend(BooleanDataViewType.Instance.GetPair(AnnotationUtils.Kinds.IsNormalized));
return items;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.TimeSeries/RootCauseAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private void LocalizeRootCausesByDimension(PointTree anomalyTree, PointTree poin

if (best == null)
{
_preparedCauses.Append(new RootCause { Items = new List<RootCauseItem>() { new RootCauseItem(anomalyDimension) } });
_preparedCauses.Add(new RootCause { Items = new List<RootCauseItem>() { new RootCauseItem(anomalyDimension) } });
}

bool rootAsAnomaly = false;
Expand Down

0 comments on commit 51b134a

Please sign in to comment.