fastlane/lib/fastlane/swift_runner_upgrader.rb in fastlane-2.78.0.beta.20180119010003 vs fastlane/lib/fastlane/swift_runner_upgrader.rb in fastlane-2.78.0.beta.20180120010003
- old
+ new
@@ -171,12 +171,15 @@
end
return updated_project
end
+ # adds new groups, and the files inside those groups
+ # Note: this does not add new files to existing groups, that is in add_new_files_to_groups!
def add_missing_groups_and_files!(dry_run: false)
missing_groups = self.find_missing_groups.to_set
- unless missing_groups.length >= 0
+ unless missing_groups.length > 0
+ UI.verbose("No missing groups found, so we don't need to worry about adding new groups")
return false
end
# well, we know we have some changes to make, so if this is a dry run,
# don't bother doing anything and just return true