1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-28 09:35:14 +03:00

Merge branch 'master' of github.com:schollz/croc

This commit is contained in:
Zack Scholl 2021-02-02 14:50:03 +00:00
commit 4481fe2336
2 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@ package main
//go:generate git tag -af v$VERSION -m "v$VERSION"
import (
"fmt"
"log"
"github.com/schollz/croc/v8/src/cli"
)
@ -28,6 +28,6 @@ func main() {
// }
// }()
if err := cli.Run(); err != nil {
fmt.Println(err)
log.Fatalln(err)
}
}

View File

@ -225,9 +225,9 @@ func send(c *cli.Context) (err error) {
return
}
defer func() {
err = os.Remove(fnames[0])
if err != nil {
log.Error(err)
e := os.Remove(fnames[0])
if e != nil {
log.Error(e)
}
}()
} else if c.String("text") != "" {
@ -236,9 +236,9 @@ func send(c *cli.Context) (err error) {
return
}
defer func() {
err = os.Remove(fnames[0])
if err != nil {
log.Error(err)
e := os.Remove(fnames[0])
if e != nil {
log.Error(e)
}
}()