Project

General

Profile

Actions

Feature #10173

closed

Remove meaningless ensure

Added by gogotanaka (Kazuki Tanaka) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:64583]

Description

I suppose 'empty ensure' like that ↓ has no meaning,

begin
  r.document args
rescue Errno::EACCES => e
  dirname = File.dirname e.message.split("-")[1].strip
  raise Gem::FilePermissionError, dirname
rescue Interrupt => e
  raise e
rescue Exception => ex
  alert_error "While generating documentation for #{@spec.full_name}"
  ui.errs.puts "... MESSAGE:   #{ex}"
  ui.errs.puts "... RDOC args: #{args.join(' ')}"
  ui.backtrace ex
  ui.errs.puts "(continuing with the rest of the installation)"
ensure
end

So I remove that.


Files

EmptyEnsure.PATCH (385 Bytes) EmptyEnsure.PATCH gogotanaka (Kazuki Tanaka), 08/27/2014 09:22 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0