Skip to content

Commit ac13a1b

Browse files
chore: fix some comments (#2279)
Signed-off-by: lvyaoting <[email protected]> Co-authored-by: ChristopherHX <[email protected]>
1 parent 06a1d69 commit ac13a1b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/runner/hashfiles/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ class Summary {
853853
/**
854854
* If the summary buffer is empty
855855
*
856-
* @returns {boolen} true if the buffer is empty
856+
* @returns {boolean} true if the buffer is empty
857857
*/
858858
isEmptyBuffer() {
859859
return this._buffer.length === 0;
@@ -1840,7 +1840,7 @@ class Pattern {
18401840
// Normalize slashes
18411841
itemPath = pathHelper.normalizeSeparators(itemPath);
18421842
// Append a trailing slash. Otherwise Minimatch will not match the directory immediately
1843-
// preceeding the globstar. For example, given the pattern `/foo/**`, Minimatch returns
1843+
// preceding the globstar. For example, given the pattern `/foo/**`, Minimatch returns
18441844
// false for `/foo` but returns true for `/foo/`. Append a trailing slash to handle that quirk.
18451845
if (!itemPath.endsWith(path.sep)) {
18461846
// Note, this is safe because the constructor ensures the pattern has an absolute root.

pkg/runner/step_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ func TestIsContinueOnError(t *testing.T) {
313313
assertObject.False(continueOnError)
314314
assertObject.Nil(err)
315315

316-
// explcit true
316+
// explicit true
317317
step = createTestStep(t, "continue-on-error: true")
318318
continueOnError, err = isContinueOnError(context.Background(), step.getStepModel().RawContinueOnError, step, stepStageMain)
319319
assertObject.True(continueOnError)

0 commit comments

Comments
 (0)