preserveExistingDocumentsForDownload function

  1. @visibleForTesting
void preserveExistingDocumentsForDownload(
  1. InspectionLocation current,
  2. InspectionLocation refreshed
)

Implementation

@visibleForTesting
void preserveExistingDocumentsForDownload(
  InspectionLocation current,
  InspectionLocation refreshed,
) {
  if ((refreshed.dokuspaths == null || refreshed.dokuspaths!.isEmpty) &&
      current.dokuspaths != null &&
      current.dokuspaths!.isNotEmpty) {
    refreshed.dokuspaths = current.dokuspaths;
  }
}