Skip to content

Commit

Permalink
make go vet happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tgulacsi committed Aug 27, 2023
1 parent 1c4b917 commit c2fa95d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func wkhtmltopdf(ctx context.Context, outfn, inpfn string) error {
cmd.Dir = filepath.Dir(inpfn)
cmd.Stderr = &buf
cmd.Stdout = os.Stdout
logger.Info("start", "wkhtmltopdf", "args", cmd.Args)
logger.Info("start wkhtmltopdf", "args", cmd.Args)
if err := cmd.Run(); err != nil {
err = fmt.Errorf("%q: %w", cmd.Args, err)
if bytes.HasSuffix(buf.Bytes(), []byte("ContentNotFoundError\n")) ||
Expand Down
1 change: 0 additions & 1 deletion converter/pdf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"bytes"
"context"
"os"
"os/exec"
"reflect"
"testing"
"time"
Expand Down
2 changes: 1 addition & 1 deletion mail_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func outlookToEmail(ctx context.Context, outfn, inpfn string) error {
}
defer func() {
if closeErr := out.Close(); closeErr != nil {
logger.Info("msg", "Close")
logger.Info("Close")
if err == nil {
err = closeErr
}
Expand Down

0 comments on commit c2fa95d

Please sign in to comment.