소스 검색

Fix staticcheck error about possible nil dereference. (#492)

Alexey Alexandrov 5 년 전
부모
커밋
2e3a5deb2c
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      internal/driver/interactive_test.go

+ 1
- 1
internal/driver/interactive_test.go 파일 보기

@@ -303,7 +303,7 @@ func TestInteractiveCommands(t *testing.T) {
303 303
 		// Get report output format
304 304
 		c := pprofCommands[cmd[0]]
305 305
 		if c == nil {
306
-			t.Errorf("unexpected nil command")
306
+			t.Fatalf("unexpected nil command")
307 307
 		}
308 308
 		vars = applyCommandOverrides(cmd[0], c.format, vars)
309 309