From 46a308572a82a6501922f7795193399c75cd5cb3 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 14 Jan 2024 16:55:18 -0800 Subject: [PATCH] pkg/importer/plaid: address staticcheck issue Signed-off-by: Brad Fitzpatrick --- pkg/importer/plaid/plaid.go | 4 ++-- pkg/server/app/app.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/importer/plaid/plaid.go b/pkg/importer/plaid/plaid.go index 95f962b0c..0dfbafaa4 100644 --- a/pkg/importer/plaid/plaid.go +++ b/pkg/importer/plaid/plaid.go @@ -104,13 +104,13 @@ var tmpl = template.Must(template.New("root").Parse(` var _ importer.ImporterSetupHTMLer = (*imp)(nil) func (im *imp) AccountSetupHTML(host *importer.Host) string { - return fmt.Sprintf(` + return `

Configuring Plaid

Signup for a developer account on Plaid dashboard

After following signup steps and verifying your email, get your developer credentials (under "Send your first request"), and copy your client ID and secret above.

-`) +` } func (im *imp) ServeCallback(w http.ResponseWriter, r *http.Request, ctx *importer.SetupContext) { diff --git a/pkg/server/app/app.go b/pkg/server/app/app.go index ad2907512..e989daeaa 100644 --- a/pkg/server/app/app.go +++ b/pkg/server/app/app.go @@ -167,7 +167,7 @@ func (a *Handler) refreshDomainBlobs() error { if a.masterQuery == nil { return errors.New("no master query") } - var sq search.SearchQuery = *(a.masterQuery) + sq := *(a.masterQuery) sq.Describe = sq.Describe.Clone() sr, err := a.sh.Query(context.TODO(), &sq) if err != nil {