Skip to content

Commit a28b579

Browse files
committed
fix linter error
Signed-off-by: Grant Linville <[email protected]>
1 parent c7d8d7f commit a28b579

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gptscript.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ func (g *GPTScript) ListCredentials(ctx context.Context, credCtx string, allCont
328328
}
329329

330330
func (g *GPTScript) CreateCredential(ctx context.Context, cred Credential) error {
331-
credJson, err := json.Marshal(cred)
331+
credJSON, err := json.Marshal(cred)
332332
if err != nil {
333333
return fmt.Errorf("failed to marshal credential: %w", err)
334334
}
335335

336-
_, err = g.runBasicCommand(ctx, "credentials/create", CredentialRequest{Content: string(credJson)})
336+
_, err = g.runBasicCommand(ctx, "credentials/create", CredentialRequest{Content: string(credJSON)})
337337
return err
338338
}
339339

0 commit comments

Comments
 (0)