shithub: hugo

Download patch

ref: 49e6c8cb4ed83e20f1e0ac164e91c38854177b99
parent: f37e77f2d338cf876cfa637a662acd76f0f2009b
author: Panagiotis Koursaris <panakourweb@gmail.com>
date: Tue Apr 21 20:16:36 EDT 2020

hugolib/filesystems: Fix typo in test suite


--- a/hugolib/filesystems/basefs_test.go
+++ b/hugolib/filesystems/basefs_test.go
@@ -398,7 +398,7 @@
 }
 
 func checkFileCount(fs afero.Fs, dirname string, c *qt.C, expected int) {
-	count, _, err := countFileaAndGetFilenames(fs, dirname)
+	count, _, err := countFilesAndGetFilenames(fs, dirname)
 	c.Assert(err, qt.IsNil)
 	c.Assert(count, qt.Equals, expected)
 }
@@ -415,7 +415,7 @@
 	}
 }
 
-func countFileaAndGetFilenames(fs afero.Fs, dirname string) (int, []string, error) {
+func countFilesAndGetFilenames(fs afero.Fs, dirname string) (int, []string, error) {
 	if fs == nil {
 		return 0, nil, errors.New("no fs")
 	}