Skip to content

Commit

Permalink
Fix number of files reported in review mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rvantonder committed Sep 25, 2019
1 parent f60e0b7 commit 75f70a2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/pipeline/pipeline.ml
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,11 @@ let run_on_specifications_with_rewrites specifications process input =
| Matches (m, number_of_matches) ->
Matches (m, number_of_matches), count + number_of_matches
| Replacement (r, content, number_of_matches) ->
Replacement (r, content, number_of_matches),
count + number_of_matches)
if number_of_matches = 0 then
Nothing, count
else
Replacement (r, content, number_of_matches),
count + number_of_matches)
in
match result with
| Replacement (_, content, _) -> Some content, count
Expand Down

0 comments on commit 75f70a2

Please sign in to comment.