Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c45d4a7df | ||
|
|
1e3f24b4d5 |
@@ -40,6 +40,7 @@ func edit(filepath string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err := os.Stat(filepath); err == nil {
|
||||
g, err := os.Open(filepath)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -48,6 +49,7 @@ func edit(filepath string) error {
|
||||
return err
|
||||
}
|
||||
g.Close()
|
||||
}
|
||||
f.Close()
|
||||
tempFile = f.Name()
|
||||
return nil
|
||||
@@ -1,4 +1,4 @@
|
||||
module pttodo
|
||||
module pttodo-cli
|
||||
|
||||
go 1.17
|
||||
|
||||
Reference in New Issue
Block a user