refactor: remove unnecessary pkg alias
This commit is contained in:
parent
4bf3756171
commit
3f333282a3
8
main.go
8
main.go
|
@ -5,7 +5,7 @@ import (
|
|||
"encoding/json"
|
||||
"log"
|
||||
"os"
|
||||
pathpkg "path"
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
"gitea.dwysokinski.me/Kichiyaki/infakt-cli/internal/infakt"
|
||||
|
@ -90,14 +90,14 @@ func newInvoiceCmd() *cli.Command {
|
|||
continue
|
||||
}
|
||||
|
||||
path := pathpkg.Join(downloadPath, strings.ReplaceAll(invoice.Number, "/", "-")+".pdf")
|
||||
invoicePath := path.Join(downloadPath, strings.ReplaceAll(invoice.Number, "/", "-")+".pdf")
|
||||
|
||||
if err = downloadInvoice(c.Context, client, invoice.UUID, path); err != nil {
|
||||
if err = downloadInvoice(c.Context, client, invoice.UUID, invoicePath); err != nil {
|
||||
log.Printf("couldn't download invoice #%d: %s", i+1, err)
|
||||
continue
|
||||
}
|
||||
|
||||
log.Printf("invoice '%s' saved on disk: %s", invoice.Number, path)
|
||||
log.Printf("invoice '%s' saved on disk: %s", invoice.Number, invoicePath)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue