~foosoft/goldsmith

ef1d7d36210f33c75702d8b04b35cb338c99cb2d — Alex Yatskov 9 years ago 769b307
Improvements
1 files changed, 2 insertions(+), 5 deletions(-)

M goldsmith.go
M goldsmith.go => goldsmith.go +2 -5
@@ 24,7 24,6 @@ package goldsmith

import (
	"io/ioutil"
	"log"
	"os"
	"path"
	"path/filepath"


@@ 72,7 71,7 @@ func (gs *goldsmith) scan(srcDir string) error {
	return nil
}

func (gs *goldsmith) stage() stage {
func (gs *goldsmith) makeStage() stage {
	s := stage{
		input:  gs.stages[len(gs.stages)-1].output,
		output: make(chan File),


@@ 87,7 86,7 @@ func (gs *goldsmith) NewFile(relPath string) File {
}

func (gs *goldsmith) Apply(p Processor) Goldsmith {
	s := gs.stage()
	s := gs.makeStage()
	go p.Process(gs, s.input, s.output)
	return gs
}


@@ 97,8 96,6 @@ func (gs *goldsmith) Complete(dstDir string) []File {

	var files []File
	for file := range s.output {
		log.Print(file)

		data := file.Data()
		if data == nil {
			continue

Do not follow this link