Skip to content

Commit

Permalink
Also use File.open
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Feb 9, 2023
1 parent e7713ad commit 16db563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thor/actions/file_manipulation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get(source, *args, &block)
URI.send(:open, source) { |input| input.binmode.read }
else
source = File.expand_path(find_in_source_paths(source.to_s))
open(source) { |input| input.binmode.read }
File.open(source) { |input| input.binmode.read }
end

destination ||= if block_given?
Expand Down

0 comments on commit 16db563

Please sign in to comment.