aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_path_resolution.go
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-02-11 22:55:56 +0100
committerMatthew Heon <mheon@redhat.com>2021-02-18 11:11:29 -0500
commitfe4333c1e87ab479fda44261b2cb820484422f85 (patch)
tree9eeedae859cc9122b9a2bc9c5777149bc4741a25 /libpod/container_path_resolution.go
parent6470f970154c4d21e591fe18d59d1f471b51b5d7 (diff)
downloadpodman-fe4333c1e87ab479fda44261b2cb820484422f85.tar.gz
podman-fe4333c1e87ab479fda44261b2cb820484422f85.tar.bz2
podman-fe4333c1e87ab479fda44261b2cb820484422f85.zip
Enable whitespace linter
Use the whitespace linter and fix the reported problems. [NO TESTS NEEDED] Signed-off-by: Paul Holzinger <paul.holzinger@web.de> <MH: Fixed up cherry-pick conflicts> Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/container_path_resolution.go')
-rw-r--r--libpod/container_path_resolution.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/libpod/container_path_resolution.go b/libpod/container_path_resolution.go
index 51e3844c8..5245314ae 100644
--- a/libpod/container_path_resolution.go
+++ b/libpod/container_path_resolution.go
@@ -86,14 +86,12 @@ func (c *Container) resolvePath(mountPoint string, containerPath string) (string
return "", "", err
}
return mount.Source, absolutePathOnTheBindMount, nil
-
}
if searchPath == "/" {
// Cannot go beyond "/", so we're done.
break
}
-
// Walk *down* the path (e.g., "/foo/bar/x" -> "/foo/bar").
searchPath = filepath.Dir(searchPath)
}