Skip to content

Commit 4df8a3b

Browse files
committed
Typo, naming
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 993904c commit 4df8a3b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cli/cliui/provisionerjob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func ProvisionerJob(ctx context.Context, wr io.Writer, opts ProvisionerJobOption
128128
currentQueuePos = job.QueuePosition
129129
// Print an update when the queue position changes, but:
130130
// - not initially, because the stage is printed at startup
131-
// - not when we first in the queue, because it's redundant
131+
// - not when we're first in the queue, because it's redundant
132132
if !initialState && currentQueuePos != 0 {
133133
printStage()
134134
}

pty/ptytest/ptytest.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ func (e *outExpecter) ExpectRegexMatch(str string) string {
153153
return e.expectMatchContextFunc(str, e.ExpectRegexMatchContext)
154154
}
155155

156-
func (e *outExpecter) expectMatchContextFunc(str string, impl func(ctx context.Context, str string) string) string {
156+
func (e *outExpecter) expectMatchContextFunc(str string, fn func(ctx context.Context, str string) string) string {
157157
e.t.Helper()
158158

159159
timeout, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium)
160160
defer cancel()
161161

162-
return impl(timeout, str)
162+
return fn(timeout, str)
163163
}
164164

165165
// TODO(mafredri): Rename this to ExpectMatch when refactoring.
@@ -175,7 +175,7 @@ func (e *outExpecter) ExpectRegexMatchContext(ctx context.Context, str string) s
175175
})
176176
}
177177

178-
func (e *outExpecter) expectMatcherFunc(ctx context.Context, str string, matchFn func(src, pattern string) bool) string {
178+
func (e *outExpecter) expectMatcherFunc(ctx context.Context, str string, fn func(src, pattern string) bool) string {
179179
e.t.Helper()
180180

181181
var buffer bytes.Buffer
@@ -189,7 +189,7 @@ func (e *outExpecter) expectMatcherFunc(ctx context.Context, str string, matchFn
189189
if err != nil {
190190
return err
191191
}
192-
if matchFn(buffer.String(), str) {
192+
if fn(buffer.String(), str) {
193193
return nil
194194
}
195195
}

0 commit comments

Comments
 (0)