summaryrefslogtreecommitdiff
path: root/volume/mounts
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-09-23 22:28:03 +0200
committerSebastiaan van Stijn <github@gone.nl>2022-09-28 01:58:50 +0200
commit188724a59773822e4a37794d5ccde6e113d9fac0 (patch)
treeb74627f962cc2efd1a483401bca6b4b85c66bd0a /volume/mounts
parente9f1b83a4a47a2d9ecf0d4e0c04ebb10c19ae86b (diff)
downloaddocker-188724a59773822e4a37794d5ccde6e113d9fac0.tar.gz
volume: fix empty-lines (revive)
volume/mounts/parser_test.go:42:39: empty-lines: extra empty line at the end of a block (revive) volume/mounts/windows_parser.go:129:24: empty-lines: extra empty line at the end of a block (revive) volume/local/local_test.go:16:35: empty-lines: extra empty line at the end of a block (revive) volume/local/local_unix.go:145:3: early-return: if c {...} else {... return } can be simplified to if !c { ... return } ... (revive) volume/service/service_test.go:18:38: empty-lines: extra empty line at the end of a block (revive) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'volume/mounts')
-rw-r--r--volume/mounts/parser_test.go1
-rw-r--r--volume/mounts/windows_parser.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/volume/mounts/parser_test.go b/volume/mounts/parser_test.go
index 201dd629de..67c8d4c065 100644
--- a/volume/mounts/parser_test.go
+++ b/volume/mounts/parser_test.go
@@ -87,5 +87,4 @@ func TestParseMountSpec(t *testing.T) {
t.Errorf("Expected mount copy data to match. Expected: '%v', Actual: '%v'", c.expected.CopyData, mp.CopyData)
}
}
-
}
diff --git a/volume/mounts/windows_parser.go b/volume/mounts/windows_parser.go
index 2e587bcc83..94f24cfc54 100644
--- a/volume/mounts/windows_parser.go
+++ b/volume/mounts/windows_parser.go
@@ -128,7 +128,6 @@ func (p *windowsParser) splitRawSpec(raw string, splitRegexp *regexp.Regexp) ([]
exists, isDir, _ := p.fi.fileInfo(matchgroups["destination"])
if exists && !isDir {
return nil, fmt.Errorf("file '%s' cannot be mapped. Only directories can be mapped on this platform", matchgroups["destination"])
-
}
}
}