errcheck: flag.CommandLine.Parse is not checked
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
This commit is contained in:
parent
a91b4e81fc
commit
741df8cbe7
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user