Skip to content

Commit

Permalink
correct odd indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wuaar1003 committed Dec 12, 2023
1 parent 97632a9 commit f598a36
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions fastlane_core/lib/fastlane_core/device_manager.rb
Expand Up @@ -13,15 +13,15 @@ def all(requested_os_type = "")

def runtime_build_os_versions
@runtime_build_os_versions ||= begin
output, status = Open3.capture2('xcrun simctl list runtimes -j')
raise status unless status.success?
json = JSON.parse(output)
json['runtimes'].map { |h| [h['buildversion'], h['version']] }.to_h
rescue StandardError => e
UI.error(e)
UI.error('xcrun simctl CLI broken; cun `xcrun simctl list runtimes` and make sure it works')
UI.user_error!('xcrun simctl not working')
end
output, status = Open3.capture2('xcrun simctl list runtimes -j')
raise status unless status.success?
json = JSON.parse(output)
json['runtimes'].map { |h| [h['buildversion'], h['version']] }.to_h
rescue StandardError => e
UI.error(e)
UI.error('xcrun simctl CLI broken; cun `xcrun simctl list runtimes` and make sure it works')
UI.user_error!('xcrun simctl not working')
end
end

def simulators(requested_os_type = "")
Expand Down

0 comments on commit f598a36

Please sign in to comment.