errcheck: flag.CommandLine.Parse is not checked

Signed-off-by: Jake Sanders <i@am.so-aweso.me>
This commit is contained in:
Jake Sanders 2021-05-04 14:30:47 +01:00
parent a91b4e81fc
commit 741df8cbe7
No known key found for this signature in database
GPG Key ID: 7E708D7933B84690

View File

@ -59,7 +59,9 @@ func InitCoverage(name string) {
}
// Set up the unit test framework with the required arguments to activate test coverage.
flag.CommandLine.Parse([]string{"-test.coverprofile", tempCoveragePath()})
if err := flag.CommandLine.Parse([]string{"-test.coverprofile", tempCoveragePath()}); err != nil {
panic(err)
}
// Begin periodic logging
go wait.Forever(FlushCoverage, flushInterval)