Skip to content

Commit b4c8b58

Browse files
Add ENV.fetch to more env variables
1 parent 34fa67d commit b4c8b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_tools_path_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ToolsPathHelper
1010
attr_reader :android_home
1111

1212
def initialize(sdk_root: nil)
13-
@android_home = sdk_root || ENV['ANDROID_HOME'] || ENV['ANDROID_SDK_ROOT'] || ENV.fetch('ANDROID_SDK', nil)
13+
@android_home = sdk_root || ENV.fetch('ANDROID_HOME', nil) || ENV.fetch('ANDROID_SDK_ROOT', nil) || ENV.fetch('ANDROID_SDK', nil)
1414
end
1515

1616
# @param [String] binary The name of the binary to search for

0 commit comments

Comments
 (0)