Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy committed Jan 8, 2025
1 parent a7ae49e commit 91b93bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/progress/compileui/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type generalWriter struct {
phase string
trace *trace
doneCh chan bool
repeatd bool
repeated bool

Check failure on line 44 in pkg/progress/compileui/display.go

View workflow job for this annotation

GitHub Actions / lint

File is not properly formatted (gofmt)
result *Result
lineCount int
}
Expand Down Expand Up @@ -72,7 +72,7 @@ func New(ctx context.Context, out console.File, mode string) (Writer, error) {
phase: "parse build.envd and download/cache dependencies",
trace: t,
doneCh: make(chan bool),
repeatd: false,
repeated: false,
result: &Result{
plugins: make([]*PluginInfo, 0),
},
Expand Down Expand Up @@ -155,10 +155,10 @@ func (w *generalWriter) run(ctx context.Context) error {
func (w *generalWriter) output(finished bool) {
width, _ := w.getSize()
b := aec.EmptyBuilder.Up(uint(1 + w.lineCount))
if !w.repeatd {
if !w.repeated {
b = b.Down(1)
}
w.repeatd = true
w.repeated = true
if finished {
fmt.Fprint(w.console, colorRun)
}
Expand Down

0 comments on commit 91b93bb

Please sign in to comment.