mirror of
https://github.com/moby/moby.git
synced 2026-08-10 01:49:04 +00:00
These options can only be specified for the matching Mount.Type, but some of the branches were missing checks. Extract the validation to a separate function so that we can keep this validation central and make the code less repetitive. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>