lib/command/flag.rb in narou-1.6.0 vs lib/command/flag.rb in narou-1.6.1

- old
+ new

@@ -50,10 +50,12 @@ database = Database.instance database.each do |id, data| if data["flags"] tags = data["flags"].keys tags << "404" if tags.delete("delete") - Tag.execute!([id, "--add", tags.join(" "), "--color", "white"]) + unless tags.empty? + Tag.execute!([id, "--add", tags.join(" "), "--color", "white"]) + end puts "-" * 70 data.delete("flags") modify = true end end