From f707396c55fc6a1b0cf5d95b983249b711a1805d Mon Sep 17 00:00:00 2001 From: Daniel Azuma Date: Mon, 29 Jun 2020 10:51:05 -0700 Subject: [PATCH] Resume updating api_names_out.yaml (#888) --- bin/generate-api | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/generate-api b/bin/generate-api index 4ea3fc884..093d6aa0c 100755 --- a/bin/generate-api +++ b/bin/generate-api @@ -38,9 +38,7 @@ module Google generate_from_url(options[:url]) if options[:url] generate_from_file(options[:file]) if options[:file] generate_from_discovery(preferred_only: options[:preferred_only]) if options[:from_discovery] - if options[:names_out] - create_file(options[:names_out]) { |*| generator.dump_api_names } unless File.exist? options[:names_out] - end + create_file(options[:names_out]) { |*| generator.dump_api_names } if options[:names_out] end desc 'list', 'List public APIs'