Skip to content

Commit

Permalink
Release: v1.0.23-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-the-h committed Oct 13, 2021
1 parent 12312c0 commit 126c7e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ Changelog
=========
All notable changes to this project will be documented in this file.

v1.0.23-alpha
------------

### Changed

- Fixed out of range error on getting quotas from source

v1.0.22-alpha
------------

Expand Down
4 changes: 2 additions & 2 deletions source.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func (c *Candle) Get(source Source) (float64, bool) {
// Get retrieves value of target field on all candles.
func (q *Quota) Get(source Source) []float64 {
result := make([]float64, len(*q))
for i, candle := range *q {
result[i], _ = candle.Get(source)
for i := range result {
result[i], _ = (*q)[i].Get(source)
}

return result
Expand Down

0 comments on commit 126c7e6

Please sign in to comment.