Skip to content

Commit b5bdfd4

Browse files
committed
Change to using EmptyDirectory's 'exist?'
1 parent 52eedd1 commit b5bdfd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/thor/actions/inject_into_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def invoke!
5757
replacement + '\0'
5858
end
5959

60-
if File.exist?(destination)
60+
if exists?
6161
replace!(/#{flag}/, content, config[:force])
6262
else
6363
raise MalformattedArgumentError, "The file #{ destination } does not appear to exist"

0 commit comments

Comments
 (0)