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 2013-09-30 14:05:19 +13:00 committed by Noah Campbell
parent 94d7fe52f8
commit 8ce4bc7ab8

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
}