consistent

master
Bel LaPointe 2023-11-07 06:11:30 -07:00
parent ea904ea729
commit d3f34709b3
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package main package main
import ( import (
"fmt"
"io/ioutil" "io/ioutil"
"os" "os"
@ -22,7 +23,7 @@ func add(config *config) error {
} }
func _add(filepath string, todo pttodo.Todo) error { func _add(filepath string, todo pttodo.Todo) error {
target := filepath + ".todo." + uuid.New().String() target := fmt.Sprintf("%s.todo.%s", filepath, uuid.New().String())
c, err := yaml.Marshal([]pttodo.Todo{todo}) c, err := yaml.Marshal([]pttodo.Todo{todo})
if err != nil { if err != nil {