Skip to content

Commit

Permalink
chore: fix some comments (#30697)
Browse files Browse the repository at this point in the history
Signed-off-by: timesince <[email protected]>
  • Loading branch information
timesince authored Aug 12, 2024
1 parent e65c63a commit dcf214f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/modules/manager/bundler/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { delimiters, extractRubyVersion, getLockFilePath } from './common';
import { extractLockFileEntries } from './locked-version';

function formatContent(input: string): string {
return input.replace(regEx(/^ {2}/), '') + '\n'; //remove leading witespace and add a new line at the end
return input.replace(regEx(/^ {2}/), '') + '\n'; //remove leading whitespace and add a new line at the end
}

export async function extractPackageFile(
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/manager/npm/extract/common/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function extractOverrideDepsRec(
}
for (const [overrideName, versionValue] of Object.entries(child)) {
if (is.string(versionValue)) {
// special handling for "." override depenency name
// special handling for "." override dependency name
// "." means the constraint is applied to the parent dep
const currDepName =
overrideName === '.' ? parents[parents.length - 1] : overrideName;
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/versioning/unity3d/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Unity versioning follow semantic versioning, followed by a letter, number and an
- Minor and patch version are incremental, starting at 0
- The letter denotes a stream (**a**lpha, **b**eta, **f**inal release, etc.)
- The number is a growing index
- The hash is calculated by Unity internally and irrelevant for comparision
- The hash is calculated by Unity internally and irrelevant for comparison

Examples:

Expand Down
2 changes: 1 addition & 1 deletion lib/util/cache/repository/impl/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class RepoCacheLocal extends RepoCacheBase {
protected async read(): Promise<string | null> {
const cacheFileName = this.getCacheFileName();
try {
// suppress debug logs with errros
// suppress debug logs with errors
if (!(await cachePathExists(cacheFileName))) {
return null;
}
Expand Down

0 comments on commit dcf214f

Please sign in to comment.