summaryrefslogtreecommitdiff
path: root/lib/rubygems/package/tar_reader/entry.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/package/tar_reader/entry.rb')
-rw-r--r--lib/rubygems/package/tar_reader/entry.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/package/tar_reader/entry.rb b/lib/rubygems/package/tar_reader/entry.rb
index 5865599d3a..8634381c18 100644
--- a/lib/rubygems/package/tar_reader/entry.rb
+++ b/lib/rubygems/package/tar_reader/entry.rb
@@ -68,9 +68,9 @@ class Gem::Package::TarReader::Entry
@header.name
end
rescue ArgumentError => e
- raise unless e.message == 'string contains null byte'
+ raise unless e.message == "string contains null byte"
raise Gem::Package::TarInvalidError,
- 'tar is corrupt, name contains null byte'
+ "tar is corrupt, name contains null byte"
end
##