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:
parent
273d92c644
commit
aa2b3c91b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user