~emersion/drmdb

b5a982126750955c2a46092dca16144ce61639c5 — Simon Ser 2 years ago 040e073
cmd/drmdump: fix typo
1 files changed, 3 insertions(+), 3 deletions(-)

M cmd/drmdump/main.go
M cmd/drmdump/main.go => cmd/drmdump/main.go +3 -3
@@ 727,9 727,9 @@ func printNode(tf treefmt.Formatter, path string, n *Node) {

func main() {
	var (
		outfutJSON bool
		outputJSON bool
	)
	flag.BoolVar(&outfutJSON, "j", false, "Enable JSON outfut")
	flag.BoolVar(&outputJSON, "j", false, "Enable JSON output")
	flag.Parse()

	paths, err := filepath.Glob(drm.NodePatternPrimary)


@@ 746,7 746,7 @@ func main() {
		nodes[p] = n
	}

	if outfutJSON {
	if outputJSON {
		err = json.NewEncoder(os.Stdout).Encode(nodes)
		if err != nil {
			log.Fatalf("Failed to write JSON: %v", err)