mirror of
https://github.com/restic/restic.git
synced 2025-12-13 13:43:08 +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.