pkg/importer/plaid: address staticcheck issue

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
This commit is contained in:
Brad Fitzpatrick 2024-01-14 16:55:18 -08:00
parent eba389eade
commit 46a308572a
2 changed files with 3 additions and 3 deletions

View File

@ -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 `
<h1>Configuring Plaid</h1>
<p>Signup for a developer account on <a href='https://dashboard.plaid.com/signup'>Plaid dashboard</a>
<p>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.
<p>
`)
`
}
func (im *imp) ServeCallback(w http.ResponseWriter, r *http.Request, ctx *importer.SetupContext) {

View File

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