From 7d5cf3909d36ac6df660633313928f216e6c1c57 Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:04:06 -0500 Subject: [PATCH] gpt: remove a colon --- plugins/gpt/chatgpt.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/gpt/chatgpt.go b/plugins/gpt/chatgpt.go index 1267350..f877ea7 100644 --- a/plugins/gpt/chatgpt.go +++ b/plugins/gpt/chatgpt.go @@ -31,7 +31,8 @@ func (p *GPTPlugin) setDefaultPrompt() error { } func (p *GPTPlugin) setPrompt(prompt string) error { - client, err := p.getClient() + var err error + client, err = p.getClient() if err != nil { return err }