Skip to content

Conversation

jsoref
Copy link

@jsoref jsoref commented Aug 25, 2025

This PR corrects misspellings identified by the check-spelling action

The misspellings have been reported at https://github.com/jsoref/gh-actions/actions/runs/17195832258/attempts/1#summary-48777671013

The action reports that the changes in this PR would make it happy: https://github.com/jsoref/gh-actions/actions/runs/17195832276/attempts/1#summary-48777670986

jsoref added 4 commits August 24, 2025 19:59
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Comment on lines 109 to +112
return process.platform === `win32`
? str.replace(/^.*zipfile:\//, ``)
: str.replace(/^.*zipfile:/, ``);
} break;

}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't part of check-spelling, but it is something I would encourage in my other lives... the break is unreachable because the return ends the code path.

Comment on lines 114 to +118
default: {
return process.platform === `win32`
? str.replace(/^\^?(zip:|\/zip)\/+/, ``)
: str.replace(/^\^?(zip:|\/zip)\/+/, `/`);
} break;
}
} }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto for this break after return.

Two braces on a line is a bit weird, but some style thing did it, so... 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant