Skip to content

Commit

Permalink
Fix linter warnings (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Alter-Pesotskiy <“[email protected]”>
  • Loading branch information
testableapple and Alexey Alter-Pesotskiy authored Dec 30, 2021
1 parent 9708634 commit bcf9211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def self.create_xcframework(params)
end

def self.debug_symbols(index:, params:)
return '' unless Helper.xcode_at_least?('12.0.0')
return '' if params[:include_debug_symbols] == false
return '' if !Helper.xcode_at_least?('12.0.0') || params[:include_debug_symbols] == false

debug_symbols = []

Expand Down
3 changes: 1 addition & 2 deletions spec/fastlane_create_xcframework_action_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@

it 'verifies debug_symbols method when xcode version is less than 12' do
allow(Fastlane::Helper).to receive(:xcode_at_least?).and_return(false)
# params = { include_debug_symbols: true }
result = described_class.debug_symbols(index: 0, params: {})
expect(result).to eq('')
end
Expand Down Expand Up @@ -226,7 +225,7 @@
allow(Dir).to receive(:exist?).and_return(true)
allow(Dir).to receive(:children).and_return([test_data])
allow(Fastlane::Helper).to receive(:xcode_at_least?).and_return(true)
result = described_class.debug_symbols(index: 0, params: { })
result = described_class.debug_symbols(index: 0, params: {})
expected_result = "-debug-symbols #{test_data}/#{test_data}.dSYM -debug-symbols #{test_data}"
expect(result).to eq(expected_result)
end
Expand Down

0 comments on commit bcf9211

Please sign in to comment.