refactor: remove unnecessary pkg alias

This commit is contained in:
Dawid Wysokiński 2023-04-09 08:39:16 +02:00
parent 4bf3756171
commit 3f333282a3
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
1 changed files with 4 additions and 4 deletions

View File

@ -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