mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
Do not create profile/trace files if they are not set.
Fixes #12705 PiperOrigin-RevId: 882207103
This commit is contained in:
@@ -257,6 +257,9 @@ func DonateProfileFDs(conf *config.Config, donations *donation.Agency, isGofer b
|
||||
}
|
||||
|
||||
func updatePath(path string, suffix string, isGofer bool) string {
|
||||
if path == "" {
|
||||
return path
|
||||
}
|
||||
if strings.HasSuffix(path, "/") {
|
||||
path += "runsc-profile." + suffix
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user