Skip to content

Commit 3e9d2ba

Browse files
committed
PR feedback
Signed-off-by: Grant Linville <[email protected]>
1 parent 2560982 commit 3e9d2ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gptscript.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"fmt"
1111
"io"
1212
"log/slog"
13+
"net/http"
1314
"os"
1415
"os/exec"
1516
"path/filepath"
@@ -363,7 +364,7 @@ func (g *GPTScript) DeleteCredential(ctx context.Context, credCtx, name string)
363364
Name: name,
364365
})
365366
if err != nil {
366-
if code == 404 {
367+
if code == http.StatusNotFound {
367368
return false, nil
368369
}
369370
return false, err

0 commit comments

Comments
 (0)