Skip to content

Commit 061d79d

Browse files
committed
format code
1 parent 3232749 commit 061d79d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/rails/prefer_nor_conditions.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121

2222
within_files Synvert::ALL_RUBY_FILES do
2323
find_node '.send[receiver=.send[message=where][arguments.size=0]][message=not][arguments.size=1][arguments.0=.hash[pairs.length>1]]' do
24-
new_source = node.arguments[0].pairs.map do |pair|
25-
"where.not(#{pair.to_source})"
26-
end.join('.')
24+
new_source = node.arguments[0].pairs.map { |pair| "where.not(#{pair.to_source})" }.join('.')
2725
replace 'receiver.message', :message, :parentheses, with: new_source
2826
end
2927
end

0 commit comments

Comments
 (0)