mirror of
				https://github.com/gohugoio/hugo.git
				synced 2025-11-04 04:27:46 -05:00 
			
		
		
		
	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:
		
							parent
							
								
									94d7fe52f8
								
							
						
					
					
						commit
						8ce4bc7ab8
					
				@ -27,7 +27,7 @@ type Filesystem struct {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (f *Filesystem) Files() []*File {
 | 
					func (f *Filesystem) Files() []*File {
 | 
				
			||||||
	f.captureFiles()
 | 
						if len(f.files)<1 {f.captureFiles()}
 | 
				
			||||||
	return f.files
 | 
						return f.files
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user