fix: ST1005: error strings should not end with punctuation or newlines

Signed-off-by: yashsingh74 <yashsingh1774@gmail.com>
(cherry picked from commit b3eec6d8e9)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
yashsingh74
2025-04-19 11:01:23 +05:30
committed by Sebastiaan van Stijn
parent 1852b5d07e
commit cebb3583e1
5 changed files with 8 additions and 8 deletions

View File

@@ -361,7 +361,7 @@ func mountPairToLayerStack(lower, upper []mount.Mount) ([]string, error) {
// May return an ErrNotImplemented, which will fall back to LCOW
upperLayer, upperParentLayerPaths, err := mountsToLayerAndParents(upper)
if err != nil {
return nil, fmt.Errorf("Upper mount invalid: %w", err)
return nil, fmt.Errorf("upper mount invalid: %w", err)
}
lowerLayer, lowerParentLayerPaths, err := mountsToLayerAndParents(lower)
@@ -369,7 +369,7 @@ func mountPairToLayerStack(lower, upper []mount.Mount) ([]string, error) {
// Upper was a windows-layer, lower is not. We can't handle that.
return nil, fmt.Errorf("windowsDiff cannot diff a windows-layer against a non-windows-layer: %w", errdefs.ErrInvalidArgument)
} else if err != nil {
return nil, fmt.Errorf("Lower mount invalid: %w", err)
return nil, fmt.Errorf("lower mount invalid: %w", err)
}
// Trivial case, diff-against-nothing