mirror of
https://github.com/restic/restic.git
synced 2025-11-14 15:22:52 +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.