starting to write the manager library
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user