mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
source: Fix golint godoc issues
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
5f2e1cb896
commit
600047ff1c
@@ -76,6 +76,7 @@ func NewSourceSpec(ps *helpers.PathSpec, fs afero.Fs) *SourceSpec {
|
||||
|
||||
}
|
||||
|
||||
// IgnoreFile returns whether a given file should be ignored.
|
||||
func (s *SourceSpec) IgnoreFile(filename string) bool {
|
||||
if filename == "" {
|
||||
if _, ok := s.SourceFs.(*afero.OsFs); ok {
|
||||
@@ -109,6 +110,8 @@ func (s *SourceSpec) IgnoreFile(filename string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRegularSourceFile returns whether filename represents a regular file in the
|
||||
// source filesystem.
|
||||
func (s *SourceSpec) IsRegularSourceFile(filename string) (bool, error) {
|
||||
fi, err := helpers.LstatIfPossible(s.SourceFs, filename)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user