Fixed issue with Extended Symlinks

Removed some shadowed err's
This commit is contained in:
Caleb Gardner
2021-01-16 01:32:00 -06:00
parent 4187598783
commit 80946f58e7
3 changed files with 17 additions and 11 deletions
+3 -3
View File
@@ -203,7 +203,7 @@ func (f *File) IsDir() bool {
//IsSymlink returns if the file is a symlink.
func (f *File) IsSymlink() bool {
return f.filType == inode.SymType || f.filType == inode.ExtSymlinkType
return f.filType == inode.SymType || f.filType == inode.ExtSymType
}
//IsFile returns if the file is a file.
@@ -217,8 +217,8 @@ func (f *File) SymlinkPath() string {
switch f.filType {
case inode.SymType:
return f.in.Info.(inode.Sym).Path
case inode.ExtSymlinkType:
return f.in.Info.(inode.Sym).Path
case inode.ExtSymType:
return f.in.Info.(inode.ExtSym).Path
default:
return ""
}