fastlane/lib/fastlane/actions/appaloosa.rb in fastlane-2.8.0 vs fastlane/lib/fastlane/actions/appaloosa.rb in fastlane-2.9.0
- old
+ new
@@ -81,10 +81,10 @@
end
def self.get_screenshots(screenshots_path, locale, device)
get_env_value('screenshots').nil? ? locale = '' : locale.concat('/')
device.nil? ? device = '' : device.concat('-')
- !screenshots_path.strip.empty? ? screenshots_list(screenshots_path, locale, device) : nil
+ screenshots_path.strip.empty? ? nil : screenshots_list(screenshots_path, locale, device)
end
def self.screenshots_list(path, locale, device)
return warning_detected("screenshots folder not found") unless Dir.exist?("#{path}/#{locale}")
list = Dir.entries("#{path}/#{locale}") - ['.', '..']