diff options
Diffstat (limited to 'lib/rubygems/commands/rdoc_command.rb')
-rw-r--r-- | lib/rubygems/commands/rdoc_command.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/rubygems/commands/rdoc_command.rb b/lib/rubygems/commands/rdoc_command.rb index 6992040dca..5f8b72eb7a 100644 --- a/lib/rubygems/commands/rdoc_command.rb +++ b/lib/rubygems/commands/rdoc_command.rb @@ -60,7 +60,7 @@ Use --overwrite to force rebuilding of documentation. end def execute - specs = if options[:all] then + specs = if options[:all] Gem::Specification.to_a else get_all_gem_names.map do |name| @@ -68,7 +68,7 @@ Use --overwrite to force rebuilding of documentation. end.flatten.uniq end - if specs.empty? then + if specs.empty? alert_error 'No matching gems found' terminate_interaction 1 end @@ -78,7 +78,7 @@ Use --overwrite to force rebuilding of documentation. doc.force = options[:overwrite] - if options[:overwrite] then + if options[:overwrite] FileUtils.rm_rf File.join(spec.doc_dir, 'ri') FileUtils.rm_rf File.join(spec.doc_dir, 'rdoc') end @@ -94,4 +94,3 @@ Use --overwrite to force rebuilding of documentation. end end - |