Skip to content

Commit

Permalink
simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
augustbleeds committed May 16, 2024
1 parent 84b3f84 commit d5fc2d3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions median/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@ func (p *Plugin) NewMedianFactory(ctx context.Context, provider types.MedianProv

_, isZeroDataSource := gasPriceSubunits.(*ZeroDataSource)

var includeGasPriceSubunitsInObservation bool
if isZeroDataSource {
includeGasPriceSubunitsInObservation = false
} else {
includeGasPriceSubunitsInObservation = true
}
includeGasPriceSubunitsInObservation := !isZeroDataSource

factory := median.NumericalMedianFactory{
DataSource: dataSource,
Expand Down

0 comments on commit d5fc2d3

Please sign in to comment.