lib/command/update.rb in narou-1.2.0 vs lib/command/update.rb in narou-1.2.1
- old
+ new
@@ -35,10 +35,10 @@
def execute(argv)
super
update_target_list = argv.dup
no_open = false
if update_target_list.empty?
- Database.instance.each do |id, _|
+ Database.instance.each_key do |id|
update_target_list << id
end
no_open = true
end
update_target_list.each_with_index do |target, i|