oci: appendOSMounts(): remove unused error, and move#7874
oci: appendOSMounts(): remove unused error, and move#7874dmcgowan merged 1 commit intocontainerd:mainfrom
Conversation
This function was added in ae22854, but never returned an error, and the error-return was not handled on the callsite. This patch removes the unused error return, and moves it to a file related to mounts, which allowed for some of the stubs to be removed and shared between non-FreeBSD platforms. Signed-off-by: Sebastiaan van Stijn <[email protected]>
dmcgowan
left a comment
There was a problem hiding this comment.
LGTM
The //go:build !freebsd in mounts.go is still a bit confusing and makes more work for reviewing changes in these files.
Yeah, it's a bit confusing indeed; perhaps the file should be renamed to |
How about |
|
A file rename can be done in another change if it makes sense. |
This function was added in ae22854 (#7000), but never returned an error, and the error-return was not handled on the callsite. This patch removes the unused error return, and moves it to a file related to mounts, which allowed for some of the stubs to be removed and shared between non-FreeBSD platforms.