Fix noinlineerr findings: cmd/vaultik (refs #61)

This commit is contained in:
2026-08-07 16:59:56 +00:00
parent 82eb352eb5
commit f7ba056814

View File

@@ -17,7 +17,8 @@ func main() {
}
defer func() { _ = f.Close() }()
if err := pprof.StartCPUProfile(f); err != nil {
err = pprof.StartCPUProfile(f)
if err != nil {
panic("could not start CPU profile: " + err.Error())
}
@@ -35,7 +36,8 @@ func main() {
runtime.GC() // get up-to-date statistics
if err := pprof.WriteHeapProfile(f); err != nil {
err = pprof.WriteHeapProfile(f)
if err != nil {
panic("could not write memory profile: " + err.Error())
}
}()