Skip to content

Commit

Permalink
Ignore linter in shadowing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixoid committed Feb 9, 2022
1 parent d7f7a7c commit cb8d871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glob.go
Expand Up @@ -126,7 +126,7 @@ func Glob(pattern string, opts ...OptFunc) ([]string, error) { // nolint:funlen,

// Check if the file is valid symlink without following it
// It works only for valid absolut or relative file paths, in other words, will fail for WithFs() option
if patternInfo, err := os.Lstat(pattern); err == nil {
if patternInfo, err := os.Lstat(pattern); err == nil { // nolint:govet
if patternInfo.Mode()&os.ModeSymlink == os.ModeSymlink {
return cleanFilepaths([]string{pattern}, options.prefix), nil
}
Expand Down

0 comments on commit cb8d871

Please sign in to comment.