Skip to content

Commit b651cdd

Browse files
committed
yarn lint:rb
1 parent 65717c4 commit b651cdd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ios/xcode.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ def override_build_settings!(build_settings, overrides)
2424
end
2525

2626
def configure_xcschemes!(xcschemes_path, project_root, target_platform, name)
27-
xcscheme = File.join(xcschemes_path, "ReactTestApp.xcscheme")
27+
xcscheme = File.join(xcschemes_path, 'ReactTestApp.xcscheme')
2828
metal_api_validation = platform_config('metalAPIValidation', project_root, target_platform)
2929

30-
31-
# Oddly enough, to disable Metal API validation, we need to add `enableGPUValidationMode = "1"` to the xcscheme Launch Action.
30+
# Oddly enough, to disable Metal API validation, we need to add `enableGPUValidationMode = "1"`
31+
# to the xcscheme Launch Action.
3232
if metal_api_validation == false
3333
xcscheme_content = File.read(xcscheme)
3434
doc = REXML::Document.new(xcscheme_content)
@@ -39,8 +39,8 @@ def configure_xcschemes!(xcschemes_path, project_root, target_platform, name)
3939
end
4040
end
4141

42+
return if name.nil?
43+
4244
# Make a copy of the ReactTestApp.xcscheme file with the app name for convenience.
43-
unless name.nil?
44-
FileUtils.cp(xcscheme, File.join(xcschemes_path, "#{name}.xcscheme"))
45-
end
46-
end
45+
FileUtils.cp(xcscheme, File.join(xcschemes_path, "#{name}.xcscheme"))
46+
end

0 commit comments

Comments
 (0)