moby/volume
Sebastiaan van Stijn eecf7a0840
volume/local: localVolume.mount() move errors.Wrap()
While the current code is correct (as errors.Wrap() returns nil if
err is nil), relying on this behavior has caused some confusion in
the past, resulting in regressions.

This patch makes the error-handling code slightly more idiomatic and
defensive against such regressions.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-06-03 00:34:16 +02:00
..
drivers reformat "nolint" comments 2021-06-10 13:03:42 +02:00
local volume/local: localVolume.mount() move errors.Wrap() 2022-06-03 00:34:16 +02:00
mounts all: replace strings.Replace with strings.ReplaceAll 2022-05-09 19:45:40 +08:00
service fix unclosed file-handles in tests 2022-05-31 21:53:38 +02:00
testutils Fix flaky test TestServiceGet 2018-06-20 22:38:29 +03:00
volume.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00