Skip to content

Commit 42dc3aa

Browse files
committed
Cleaner syntax
1 parent 6340fa7 commit 42dc3aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fastlane/lib/helper/update_helper.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ def update_rnbranch_xcodeproj(version)
140140
rnbranch_option = %[RNBRANCH_VERSION=@\\"#{version}\\"]
141141
project = Xcodeproj::Project.open 'ios/RNBranch.xcodeproj'
142142
project.build_configurations.each do |config|
143-
options = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS']
144-
options ||= []
143+
options = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] || []
145144
options = options.reject { |o| o =~ /^RNBRANCH_VERSION=/ }
146145
options << rnbranch_option
147146
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = options

0 commit comments

Comments
 (0)