Skip to content

Commit

Permalink
Revert code changes as it causes integrity check failure (microsoft#2730
Browse files Browse the repository at this point in the history
)
  • Loading branch information
DordeDimitrijev authored Jul 25, 2024
1 parent c55b66a commit d1cab78
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@ private static String computeHash(InputStream dataStream) {
}

public static void copyNecessaryFilesFromCurrentPackage(String diffManifestFilePath, String currentPackageFolderPath, String newPackageFolderPath) throws IOException {
if (currentPackageFolderPath == null || !new File(currentPackageFolderPath).exists()) {
CodePushUtils.log("Unable to copy files from current package during diff update, because currentPackageFolderPath is invalid.");
return;
}
FileUtils.copyDirectoryContents(currentPackageFolderPath, newPackageFolderPath);
JSONObject diffManifest = CodePushUtils.getJsonObjectFromFile(diffManifestFilePath);
try {
JSONArray deletedFiles = diffManifest.getJSONArray("deletedFiles");
Expand Down

0 comments on commit d1cab78

Please sign in to comment.