1
1
mirror of https://github.com/walles/moar.git synced 2024-09-11 12:15:43 +03:00

Don't use "string" as a variable name

This commit is contained in:
Johan Walles 2023-10-12 07:05:42 +02:00
parent 273d92c644
commit aa2b3c91b5

View File

@ -457,13 +457,13 @@ func (p *Pager) initStyle() {
panic(err)
}
string := stringBuilder.String()
cutoff := strings.Index(string, "XXX")
formatted := stringBuilder.String()
cutoff := strings.Index(formatted, "XXX")
if cutoff < 0 {
panic("XXX not found in " + string)
panic("XXX not found in " + formatted)
}
p.linePrefix = string[:cutoff]
p.linePrefix = formatted[:cutoff]
}
// StartPaging brings up the pager on screen