chore: remove duplicate word in comments (#2232)
This commit is contained in:
parent
3d5394a7e7
commit
a9d500c554
|
|
@ -120,7 +120,7 @@ func filesWithParentDirs(files []string) []string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// resolveSymlinkAncestor returns the ancestor link of the provided symlink path or returns the
|
// resolveSymlinkAncestor returns the ancestor link of the provided symlink path or returns the
|
||||||
// the path if it is not a link. The ancestor link is the filenode whose type is a Symlink.
|
// path if it is not a link. The ancestor link is the filenode whose type is a Symlink.
|
||||||
// E.G /baz/boom/bar.txt links to /usr/bin/bar.txt but /baz/boom/bar.txt itself is not a link.
|
// E.G /baz/boom/bar.txt links to /usr/bin/bar.txt but /baz/boom/bar.txt itself is not a link.
|
||||||
// Instead /bar/boom is actually a link to /usr/bin. In this case resolveSymlinkAncestor would
|
// Instead /bar/boom is actually a link to /usr/bin. In this case resolveSymlinkAncestor would
|
||||||
// return /bar/boom.
|
// return /bar/boom.
|
||||||
|
|
@ -147,7 +147,7 @@ loop:
|
||||||
// one of its ancestors could be a symlink. We call filepath.EvalSymlinks
|
// one of its ancestors could be a symlink. We call filepath.EvalSymlinks
|
||||||
// to test whether there are any links in the path. If the output of
|
// to test whether there are any links in the path. If the output of
|
||||||
// EvalSymlinks is different than the input we know one of the nodes in the
|
// EvalSymlinks is different than the input we know one of the nodes in the
|
||||||
// the path is a link.
|
// path is a link.
|
||||||
target, err := filepath.EvalSymlinks(newPath)
|
target, err := filepath.EvalSymlinks(newPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// writeSecurityXattrToTarHeader writes security.capability
|
// writeSecurityXattrToTarHeader writes security.capability
|
||||||
// xattrs from a a tar header to filesystem
|
// xattrs from a tar header to filesystem
|
||||||
func writeSecurityXattrToToFile(path string, hdr *tar.Header) error {
|
func writeSecurityXattrToToFile(path string, hdr *tar.Header) error {
|
||||||
if hdr.Xattrs == nil {
|
if hdr.Xattrs == nil {
|
||||||
return nil
|
return nil
|
||||||
|
|
@ -253,7 +253,7 @@ func UnpackLocalTarArchive(path, dest string) ([]string, error) {
|
||||||
return nil, errors.New("path does not lead to local tar archive")
|
return nil, errors.New("path does not lead to local tar archive")
|
||||||
}
|
}
|
||||||
|
|
||||||
//IsFileLocalTarArchive returns true if the file is a local tar archive
|
// IsFileLocalTarArchive returns true if the file is a local tar archive
|
||||||
func IsFileLocalTarArchive(src string) bool {
|
func IsFileLocalTarArchive(src string) bool {
|
||||||
compressed, _ := fileIsCompressedTar(src)
|
compressed, _ := fileIsCompressedTar(src)
|
||||||
uncompressed := fileIsUncompressedTar(src)
|
uncompressed := fileIsUncompressedTar(src)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue