Update filesystem.go

bugfix: .Files() called twice in line 253, 256 in site.go. thus source files captured twice.

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
This commit is contained in:
windch authored and Noah Campbell committed 2013-09-29 19:43:38 -07:00
1 parent 94d7fe52f8
commit 8ce4bc7ab8
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ type Filesystem struct {
}
func (f *Filesystem) Files() []*File {
f.captureFiles()
if len(f.files)<1 {f.captureFiles()}
return f.files
}