mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #33620 from bogdanvlviv/fix-rubocop-offenses
Fix rubocop offenses
This commit is contained in:
commit
7e3a0a947f
2 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ namespace :changelog do
|
|||
current_contents = File.read(fname)
|
||||
|
||||
header = "## Rails #{version} (#{Date.today.strftime('%B %d, %Y')}) ##\n\n"
|
||||
header += "* No changes.\n\n\n" if current_contents =~ /\A##/
|
||||
header += "* No changes.\n\n\n" if current_contents.start_with?("##")
|
||||
contents = header + current_contents
|
||||
File.write(fname, contents)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue