Skip to content

Commit

Permalink
Merge pull request #105 from xinminlabs/awesomecode-format-ruby-code-…
Browse files Browse the repository at this point in the history
…60560

Auto corrected by following Format Ruby Code
  • Loading branch information
flyerhzm authored Feb 20, 2024
2 parents aee2405 + 71db816 commit a77b97b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/synvert/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def available_rewriters
# Query and print available rewriters.
def query_available_rewriters(query, format)
if format == 'json'
puts available_rewriters.select { |rewriter| rewriter[:group].include?(query) || rewriter[:name].include?(query) }.to_json
puts available_rewriters.select { |rewriter|
rewriter[:group].include?(query) || rewriter[:name].include?(query)
}
.to_json
else
Core::Rewriter.availables.each do |group, rewriters|
if group.include?(query)
Expand Down

0 comments on commit a77b97b

Please sign in to comment.