diff options
author | Arlandis Word <arlandislawrence@gmail.com> | 2018-10-14 09:44:58 -0400 |
---|---|---|
committer | Arlandis Word <arlandislawrence@gmail.com> | 2018-10-14 09:44:58 -0400 |
commit | 59e7afd40b924b65ecdaf350f379569838dc0931 (patch) | |
tree | 19bf1a7c8d739696924fe099a6332a87a95194d9 /lib/pry/code | |
parent | 13e9c39562e564e3873e7d6ccaa129ecb15edbc7 (diff) | |
download | pry-59e7afd40b924b65ecdaf350f379569838dc0931.tar.gz |
Fix rubocop empty line after guard clause style violations
Diffstat (limited to 'lib/pry/code')
-rw-r--r-- | lib/pry/code/code_range.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pry/code/code_range.rb b/lib/pry/code/code_range.rb index bdd3a6d3..e1a021f9 100644 --- a/lib/pry/code/code_range.rb +++ b/lib/pry/code/code_range.rb @@ -49,12 +49,14 @@ class Pry # @return [Integer] def find_start_index(lines) return start_line if start_line < 0 + lines.index { |loc| loc.lineno >= start_line } || lines.length end # @return [Integer] def find_end_index(lines) return end_line if end_line < 0 + (lines.index { |loc| loc.lineno > end_line } || 0) - 1 end |