mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-19 02:58:05 +00:00
fix: update return statement to use spread operator for TSeries in Adx and Adxr classes
This commit is contained in:
@@ -433,6 +433,6 @@ public sealed class Adx : ITValuePublisher
|
||||
tList.Add(times[i]);
|
||||
}
|
||||
|
||||
return new TSeries(tList, new List<double>(v));
|
||||
return new TSeries(tList, [.. v]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,6 +230,6 @@ public sealed class Adxr : ITValuePublisher
|
||||
tList.Add(times[i]);
|
||||
}
|
||||
|
||||
return new TSeries(tList, new List<double>(v));
|
||||
return new TSeries(tList, [.. v]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user