fix index out of range

This commit is contained in:
vyzo 2021-06-29 16:18:25 +03:00
parent dec61fa333
commit 0b315e97c8

View File

@ -349,6 +349,9 @@ func (d *debugLog) getNormalizedStackTrace() string {
for i, line := range lines {
if line[len(line)-1] == ')' {
idx := strings.LastIndex(line, "(")
if idx < 0 {
continue
}
lines[i] = line[:idx]
}
}