mirror of
https://github.com/octoleo/restic.git
synced 2025-02-10 15:48:29 +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.