We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c492a3d + 7e5b8da commit b0c3b57Copy full SHA for b0c3b57
1 file changed
lib/3scale_toolbox/resource_reader.rb
@@ -30,8 +30,8 @@ def read_content(resource, verify_ssl)
30
31
# Detect format from file extension
32
def read_file(filename)
33
- raise ThreeScaleToolbox::Error, "File not found: #{filename} " unless File.file?(filename)
34
- raise ThreeScaleToolbox::Error, "File not readable: #{filename} " unless File.readable?(filename)
+ raise ThreeScaleToolbox::Error, "File not found: #{filename}" unless File.file?(filename)
+ raise ThreeScaleToolbox::Error, "File not readable: #{filename}" unless File.readable?(filename)
35
36
File.read(filename)
37
end
0 commit comments