Skip to content

Commit

Permalink
programs/jitter/parse: resolve Style/RedundantReturn: Redundant retur…
Browse files Browse the repository at this point in the history
…n detected

Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
rli9 committed Aug 29, 2024
1 parent e8ccc7c commit 60eb8e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/jitter/parse
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def percentile(values, percentile)
sorted = values.sort
a = (percentile * (sorted.length - 1) + 1).floor - 1
b = (percentile * (sorted.length - 1) + 1).modulo(1)
return sorted[a] + (b * (sorted[a + 1] - sorted[a]))
sorted[a] + (b * (sorted[a + 1] - sorted[a]))
end

i = 0
Expand Down

0 comments on commit 60eb8e0

Please sign in to comment.