rm extra mem

master
Bel LaPointe 2023-11-06 13:11:40 -07:00
parent 1ce120a647
commit f2e3e6f505
1 changed files with 1 additions and 7 deletions

View File

@ -1,7 +1,6 @@
package main
import (
"fmt"
"io"
"os"
@ -41,10 +40,5 @@ func _dump(writer io.Writer, filepaths []string, tags []string, search, rootDisp
v = root.Done
}
b2, err := yaml.Marshal(v)
if err != nil {
return err
}
fmt.Fprintf(writer, "%s\n", b2)
return nil
return yaml.NewEncoder(writer).Encode(v)
}