lib/stash/pull_request/diff.rb in face_control-0.8.4 vs lib/stash/pull_request/diff.rb in face_control-0.8.5
- old
+ new
@@ -18,9 +18,10 @@
private
def diffs_with_added_lines
@diff['diffs'].select do |diff|
diff['destination'] &&
+ diff['hunks'] &&
diff['hunks'].find do |hunk|
hunk['segments'].find do |segment|
segment['type'] == 'ADDED'
end
end