Skip to content

Commit 3047d22

Browse files
authored
Merge pull request #14 from SyntaxSpirits/fix/rubocop-benchmark-parentheses
2 parents f12903a + ac892a1 commit 3047d22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

benchmarks/convergence_benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def generate_data(num_people, num_items, difficulty_range: (-2..2), ability_rang
223223
# Generate data with missing values
224224
base_data = generate_data(100, 50)[:data]
225225

226-
data_with_missing = if (config[:rate]).positive?
226+
data_with_missing = if config[:rate].positive?
227227
base_data.map do |row|
228228
row.map { |resp| rand < config[:rate] ? nil : resp }
229229
end

0 commit comments

Comments
 (0)