summaryrefslogtreecommitdiff
path: root/lib/rubygems/package/file_source.rb
diff options
context:
space:
mode:
authorTakuya Noguchi <[email protected]>2022-07-17 08:08:51 +0000
committerHiroshi SHIBATA <[email protected]>2022-07-22 12:07:23 +0900
commitd7ffd3fea402239b16833cc434404a7af82d44f3 ()
tree9794942135111c36e6b6bce69e070ca556b89028 /lib/rubygems/package/file_source.rb
parent388c4e1076ac5a58d5008abc8e0a8d017698875a (diff)
RubyGems: Enable Style/StringLiterals cop
Signed-off-by: Takuya Noguchi <[email protected]>
-rw-r--r--lib/rubygems/package/file_source.rb4
1 files changed, 2 insertions, 2 deletions
@@ -22,10 +22,10 @@ class Gem::Package::FileSource < Gem::Package::Source # :nodoc: all
end
def with_write_io(&block)
- File.open path, 'wb', &block
end
def with_read_io(&block)
- File.open path, 'rb', &block
end
end