From ac13a1b20df895f2334a052a3b431a12af6e0afc Mon Sep 17 00:00:00 2001 From: lvyaoting <166296299+lvyaoting@users.noreply.github.com> Date: Thu, 11 Apr 2024 03:58:56 +0800 Subject: [PATCH] chore: fix some comments (#2279) Signed-off-by: lvyaoting Co-authored-by: ChristopherHX --- pkg/runner/hashfiles/index.js | 4 ++-- pkg/runner/step_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/runner/hashfiles/index.js b/pkg/runner/hashfiles/index.js index c26f783..f2bed37 100644 --- a/pkg/runner/hashfiles/index.js +++ b/pkg/runner/hashfiles/index.js @@ -853,7 +853,7 @@ class Summary { /** * If the summary buffer is empty * - * @returns {boolen} true if the buffer is empty + * @returns {boolean} true if the buffer is empty */ isEmptyBuffer() { return this._buffer.length === 0; @@ -1840,7 +1840,7 @@ class Pattern { // Normalize slashes itemPath = pathHelper.normalizeSeparators(itemPath); // Append a trailing slash. Otherwise Minimatch will not match the directory immediately - // preceeding the globstar. For example, given the pattern `/foo/**`, Minimatch returns + // preceding the globstar. For example, given the pattern `/foo/**`, Minimatch returns // false for `/foo` but returns true for `/foo/`. Append a trailing slash to handle that quirk. if (!itemPath.endsWith(path.sep)) { // Note, this is safe because the constructor ensures the pattern has an absolute root. diff --git a/pkg/runner/step_test.go b/pkg/runner/step_test.go index cdb870e..5af5acf 100644 --- a/pkg/runner/step_test.go +++ b/pkg/runner/step_test.go @@ -313,7 +313,7 @@ func TestIsContinueOnError(t *testing.T) { assertObject.False(continueOnError) assertObject.Nil(err) - // explcit true + // explicit true step = createTestStep(t, "continue-on-error: true") continueOnError, err = isContinueOnError(context.Background(), step.getStepModel().RawContinueOnError, step, stepStageMain) assertObject.True(continueOnError)