starting to write the manager library

This commit is contained in:
2020-06-18 17:22:42 -04:00
parent 55561d8667
commit 8c01cdbcf4
10 changed files with 709 additions and 27 deletions

View File

@@ -86,9 +86,9 @@ func decompressDelta(compressedData []byte) ([]byte, error) {
}
func applyPatchToFile(originalbytes, delta []byte) ([]byte, error) {
if patchedBytes, err := fdelta.Apply(originalbytes, delta); err != nil {
patchedBytes, err := fdelta.Apply(originalbytes, delta)
if err != nil {
return []byte{}, err
} else {
return patchedBytes, nil
}
return patchedBytes, nil
}