mirror of
https://github.com/ollama/ollama.git
synced 2025-05-10 18:06:33 +02:00
lint
This commit is contained in:
parent
c895a7d13f
commit
e40145a39d
31 changed files with 127 additions and 136 deletions
|
@ -59,7 +59,7 @@ func (p *Progress) StopAndClear() bool {
|
|||
stopped := p.stop()
|
||||
if stopped {
|
||||
// clear all progress lines
|
||||
for i := 0; i < p.pos; i++ {
|
||||
for i := range p.pos {
|
||||
if i > 0 {
|
||||
fmt.Fprint(p.w, "\033[A")
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ func (p *Progress) render() {
|
|||
defer fmt.Fprint(p.w, "\033[?25h")
|
||||
|
||||
// clear already rendered progress lines
|
||||
for i := 0; i < p.pos; i++ {
|
||||
for i := range p.pos {
|
||||
if i > 0 {
|
||||
fmt.Fprint(p.w, "\033[A")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue