light modification
This commit is contained in:
@@ -81,10 +81,10 @@ func (abs *PricedResource) GetExplicitDurationInS() float64 {
|
||||
|
||||
func (r *PricedResource) GetPrice() (float64, error) {
|
||||
if r.UsageStart == nil || r.UsageEnd == nil {
|
||||
return 0, errors.New("Usage start and end must be set")
|
||||
return 0, errors.New("usage start and end must be set")
|
||||
}
|
||||
if r.SelectedPricing == nil {
|
||||
return 0, errors.New("Selected pricing must be set")
|
||||
return 0, errors.New("selected pricing must be set")
|
||||
}
|
||||
return (*r.SelectedPricing).GetPrice(1, 0, *r.UsageStart, *r.UsageEnd)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user