Skip to content

Commit 4ab211e

Browse files
committed
fix rubocop offenses
1 parent a7029be commit 4ab211e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/annotate/annotate_models.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def annotate_one_file(file_name, info_block, position, options = {})
512512
new_columns = new_header && new_header.scan(column_pattern).sort
513513

514514
return false if old_columns == new_columns && !options[:force]
515-
515+
516516
# Replace inline the old schema info with the new schema info
517517
wrapper_open = options[:wrapper_open] ? "# #{options[:wrapper_open]}\n" : ""
518518
wrapper_close = options[:wrapper_close] ? "# #{options[:wrapper_close]}\n" : ""
@@ -543,7 +543,7 @@ def annotate_one_file(file_name, info_block, position, options = {})
543543
end
544544

545545
File.open(file_name, 'wb') { |f| f.puts new_content }
546-
return true
546+
true
547547
end
548548

549549
def magic_comment_matcher

0 commit comments

Comments
 (0)