Skip to content

Commit

Permalink
Fix is_hidden on non-Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesvp committed May 14, 2015
1 parent 7f818e2 commit 032cd3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/files/is_hidden.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ func IsHidden(f File) bool {
fName := filepath.Base(f.FileName())

if strings.HasPrefix(fName, ".") && len(fName) > 1 {
return true, nil
return true
}

return false, nil
return false
}

0 comments on commit 032cd3c

Please sign in to comment.