We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 886344c commit f04bcb1Copy full SHA for f04bcb1
1 file changed
lib/octocatalog-diff/util/scriptrunner.rb
@@ -82,9 +82,7 @@ def output
82
# @param script [String] Path to script
83
# @return [String] Path to tempfile containing script
84
def temp_script(script)
85
- unless File.file?(script)
86
- raise Errno::ENOENT, "Script '#{script}' not found"
87
- end
+ raise Errno::ENOENT, "Script '#{script}' not found" unless File.file?(script)
88
script_name, extension = script.split('.', 2)
89
tempfile = ::Tempfile.new([File.basename(script_name), ".#{extension}"])
90
tempfile.write(File.read(script))
0 commit comments