Skip to content

Commit 11c7a0f

Browse files
committed
Fix golangci-lint findings
Fix findings by golangci-lint run.
1 parent 86a19be commit 11c7a0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

term_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ func CaptureStdout(f func()) string {
6161
w.Close()
6262

6363
var buf bytes.Buffer
64-
io.Copy(&buf, r)
64+
_, err = io.Copy(&buf, r)
65+
Expect(err).ToNot(HaveOccurred())
6566

6667
return buf.String()
6768
}

0 commit comments

Comments
 (0)