Skip to content

Commit 6c0bd9a

Browse files
committed
rubocop
1 parent d2119ec commit 6c0bd9a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/bashly/script/formatter.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,15 @@ def shfmt_result
3030

3131
def custom_formatter_result(command)
3232
command = Shellwords.split command if command.is_a? String
33-
33+
3434
begin
3535
output, error, status = Open3.capture3(*command, stdin_data: script)
36-
rescue Errno::ENOENT => e
36+
rescue Errno::ENOENT
3737
raise Error, "Command not found: `#{command.join(' ')}`"
3838
end
3939

4040
raise Error, "Failed running `#{command.join(' ')}`:\n\n#{error}" unless status.success?
4141

42-
4342
output
4443
end
4544
end

0 commit comments

Comments
 (0)