Add missing error checks and simplify bool check
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
parent
784d03809e
commit
bd40bbc30b
2 changed files with 8 additions and 4 deletions
|
@ -290,7 +290,7 @@ func main() {
|
|||
if err != nil {
|
||||
return fmt.Errorf("invalid --cpu-profile value %q", err)
|
||||
}
|
||||
pprof.StartCPUProfile(f)
|
||||
_ = pprof.StartCPUProfile(f)
|
||||
defer pprof.StopCPUProfile()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue