Skip to content

Commit

Permalink
nit fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirfolio3 committed Oct 22, 2019
1 parent 2247349 commit 899e66a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/decision/composite_feature_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ func NewCompositeFeatureService(compositeExperimentService ExperimentService) *C

// GetDecision returns a decision for the given feature and user context
func (f CompositeFeatureService) GetDecision(decisionContext FeatureDecisionContext, userContext entities.UserContext) (FeatureDecision, error) {
lastElementIndex := 0
if len(f.featureServices) > 0 {
lastElementIndex = len(f.featureServices) - 1
}
lastElementIndex := len(f.featureServices) - 1
for index, featureDecisionService := range f.featureServices {
featureDecision, err := featureDecisionService.GetDecision(decisionContext, userContext)
if err != nil {
Expand Down

0 comments on commit 899e66a

Please sign in to comment.