Skip to content

Commit

Permalink
must add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danReynolds committed Mar 26, 2018
1 parent e2a2201 commit fbda722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/strategy_engine.rb
Expand Up @@ -51,7 +51,7 @@ def calculate_rating(args, factors)
acc[priority] ||= { performance: 0, total: 0 }
priority_values = acc[priority]
performance = if value[:performance]
reasons << { name: name, args: value[:args] }
reasons << { name: name, args: value[:args] || {} }
value[:performance]
else
performance_rating = calculate_rating(args, value[:factors])
Expand Down

0 comments on commit fbda722

Please sign in to comment.