Small code cleanup - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 4349216debc66642c5ef33ffdcbdfcf0a58a9a9b
DIR parent 0fdea0c2c222bb3f21187d0ff34fbe92980ae851
HTML Author: Noah Campbell <noahcampbell@gmail.com>
Date: Sat, 31 Aug 2013 20:00:57 -0700
Small code cleanup
Diffstat:
M hugolib/site.go | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
DIR diff --git a/hugolib/site.go b/hugolib/site.go
@@ -646,11 +646,9 @@ func (s *Site) Stats() {
}
}
-func (s *Site) NewNode() Node {
- var y Node
+func (s *Site) NewNode() (y Node) {
y.Data = make(map[string]interface{})
y.Site = s.Info
-
return y
}