Some linting fixes
This commit is contained in:
@ -5,8 +5,9 @@ import (
|
||||
"embed"
|
||||
"fmt"
|
||||
|
||||
_ "github.com/jackc/pgx/v4/stdlib" // needed for pg connection
|
||||
"github.com/pressly/goose/v3"
|
||||
|
||||
_ "github.com/jackc/pgx/v4/stdlib" // needed for pg connection
|
||||
)
|
||||
|
||||
//go:embed schema/*.sql
|
||||
|
@ -50,7 +50,6 @@ func NewYNABImport(context context.Context, q *Queries, budgetID uuid.UUID) (*YN
|
||||
queries: q,
|
||||
budgetID: budgetID,
|
||||
}, nil
|
||||
|
||||
}
|
||||
|
||||
// ImportAssignments expects a TSV-file as exported by YNAB in the following format:
|
||||
@ -147,7 +146,7 @@ func (ynab *YNABImport) ImportTransactions(context context.Context, r io.Reader)
|
||||
return fmt.Errorf("parse date %s: %w", dateString, err)
|
||||
}
|
||||
|
||||
categoryGroup, categoryName := record[5], record[6] //also in 4 joined by :
|
||||
categoryGroup, categoryName := record[5], record[6] // also in 4 joined by :
|
||||
category, err := ynab.GetCategory(context, categoryGroup, categoryName)
|
||||
if err != nil {
|
||||
return fmt.Errorf("get category %s/%s: %w", categoryGroup, categoryName, err)
|
||||
|
Reference in New Issue
Block a user