mirror of
https://github.com/restic/restic.git
synced 2025-06-07 17:18:31 +00:00

If the context was canceled then saveTree might receive a treeID or not depending on the timing. This could cause saveTree to incorrectly return a nil treeID as valid. Fix this always returning an error when the context was canceled in the meantime.