Skip to content

Commit

Permalink
paramfetch review
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Oct 2, 2019
1 parent 713f08e commit 2dbd920
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ build: $(BUILD_DEPS)
rm -f lotus lotus-storage-miner
go build -o lotus ./cmd/lotus
go build -o lotus-storage-miner ./cmd/lotus-storage-miner
rice append --exec lotus -i ./build
rice append --exec lotus-storage-miner -i ./build
go run github.com/GeertJohan/go.rice/rice append --exec lotus -i ./build
go run github.com/GeertJohan/go.rice/rice append --exec lotus-storage-miner -i ./build
.PHONY: build

benchmarks:
Expand Down
4 changes: 3 additions & 1 deletion build/paramfetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ type paramFile struct {
}

func GetParams(storage bool) error {
os.Mkdir(paramdir, 0755)
if err := os.Mkdir(paramdir, 0755); err != nil {
return err
}

var params map[string]paramFile

Expand Down

0 comments on commit 2dbd920

Please sign in to comment.