bake/modernize/editorconfig.rb in bake-modernize-0.15.1 vs bake/modernize/editorconfig.rb in bake-modernize-0.16.0

- old
+ new

@@ -1,21 +1,15 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2020-2022, by Samuel Williams. +# Copyright, 2020-2023, by Samuel Williams. require 'bake/modernize' def editorconfig update(root: Dir.pwd) end def update(root:) - editorconfig_path = File.expand_path(".editorconfig", root) - - if File.exist?(editorconfig_path) - FileUtils.rm_rf(editorconfig_path) - end - template_root = Bake::Modernize.template_path_for('editorconfig') Bake::Modernize.copy_template(template_root, root) end