Skip to content

Commit b51e30e

Browse files
committed
chore: fix lint issues in tests
Signed-off-by: Donnie Adams <[email protected]>
1 parent 5924712 commit b51e30e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gptscript_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ func TestConfirmDeny(t *testing.T) {
984984

985985
if confirmCallEvent == nil {
986986
t.Fatalf("No confirm call event")
987+
return
987988
}
988989

989990
if !strings.Contains(confirmCallEvent.Input, "\"ls\"") {
@@ -1055,6 +1056,7 @@ func TestPrompt(t *testing.T) {
10551056

10561057
if promptFrame == nil {
10571058
t.Fatalf("No prompt call event")
1059+
return
10581060
}
10591061

10601062
if promptFrame.Sensitive {
@@ -1126,6 +1128,7 @@ func TestPromptWithMetadata(t *testing.T) {
11261128

11271129
if promptFrame == nil {
11281130
t.Fatalf("No prompt call event")
1131+
return
11291132
}
11301133

11311134
if promptFrame.Sensitive {
@@ -1152,6 +1155,7 @@ func TestPromptWithMetadata(t *testing.T) {
11521155
}
11531156

11541157
// Read the remainder of the events
1158+
//nolint:revive
11551159
for range run.Events() {
11561160
}
11571161

0 commit comments

Comments
 (0)