Skip to content

Commit

Permalink
[cqfn#234] Fix codacy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pnatashap committed Jan 20, 2024
1 parent 324900d commit 7c3a95d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/pdd/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ def tail(lines, prefix, start)
prefix = "#{prefix} " if lines[0][prefix.length, 1]&.start_with?(' ')
lines
.take_while do |t|
match_markers(t).none? && \
(t.start_with?(prefix) || t.start_with?(empty_prefix))
match_markers(t).none? && (t.start_with?(prefix) || t.start_with?(empty_prefix))
end
.map { |t| t[prefix.length, t.length]&.lstrip }
end
Expand Down

0 comments on commit 7c3a95d

Please sign in to comment.