Skip to content

Commit bfb8f63

Browse files
sota000facebook-github-bot
authored andcommitted
Fix bugs when running with USE_CODEGEN_DISCOVERY
Summary: Changelog: [internal] Fixing a couple of bugs when running with USE_CODEGEN_DISCOVERY. Reviewed By: mdvacca Differential Revision: D33115937 fbshipit-source-id: bb770b406b6dbebfefccac488a7c40caaafa6ca6
1 parent 07a62c2 commit bfb8f63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/react_native_pods.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def get_react_codegen_spec(options={})
341341
end
342342

343343
def get_codegen_config_from_file(config_path, config_key)
344-
empty = {'libraries': []}
344+
empty = {'libraries' => []}
345345
if !File.exist?(config_path)
346346
return empty
347347
end
@@ -362,7 +362,7 @@ def get_react_codegen_script_phases(options={})
362362

363363
config_file_dir = options[:config_file_dir] ||= ''
364364
relative_config_file_dir = ''
365-
if config_file_dir
365+
if config_file_dir != ''
366366
relative_config_file_dir = Pathname.new(config_file_dir).relative_path_from(Pod::Config.instance.installation_root)
367367
end
368368

0 commit comments

Comments
 (0)