Skip to content

Commit

Permalink
Merge pull request #69 from sinshutu/use-correctable
Browse files Browse the repository at this point in the history
Use `correctable?` for branching build_suggestions
  • Loading branch information
mgrachev authored Apr 20, 2022
2 parents 051a1bb + fe70313 commit 0449416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdjson_formatter/rdjson_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def build_diagnostic(file, offense)
original_output: offense.to_s
}

diagnostic[:suggestions] = build_suggestions(offense) if offense.corrector
diagnostic[:suggestions] = build_suggestions(offense) if offense.correctable?

diagnostic
end
Expand Down

0 comments on commit 0449416

Please sign in to comment.