Skip to content

Commit ef23533

Browse files
committed
chore: fix eslint issues
1 parent 4af6e59 commit ef23533

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

lib/modules/manager/pip-compile/extract.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import upath from 'upath';
22
import { logger } from '../../../logger';
3+
import { coerceArray } from '../../../util/array';
34
import { readLocalFile } from '../../../util/fs';
45
import { ensureLocalPath } from '../../../util/fs/util';
56
import { extractPackageFile as extractRequirementsFile } from '../pip_requirements/extract';
@@ -73,7 +74,7 @@ export async function extractAllPackageFiles(
7374
continue;
7475
}
7576
lockFileArgs.set(fileMatch, compileArgs);
76-
for (const constraint in compileArgs.constraintsFiles) {
77+
for (const constraint of coerceArray(compileArgs.constraintsFiles)) {
7778
depsBetweenFiles.push({
7879
sourceFile: constraint,
7980
outputFile: fileMatch,

lib/modules/platform/github/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ export async function createFork(
423423
await githubApi.postJson<GhRestRepo>(`repos/${repository}/forks`, {
424424
token,
425425
body: {
426-
organization: forkOrg ? forkOrg : undefined,
426+
organization: forkOrg ?? undefined,
427427
name: config.parentRepo!.replace('/', '-_-'),
428428
default_branch_only: true, // no baseBranches support yet
429429
},

lib/modules/versioning/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ export const getVersionings = (): Map<
1717
> => versionings;
1818

1919
export function get(versioning: string | null | undefined): VersioningApi {
20-
const res = Versioning.safeParse(
21-
versioning ? versioning : defaultVersioning.id,
22-
);
20+
const res = Versioning.safeParse(versioning ?? defaultVersioning.id);
2321

2422
if (!res.success) {
2523
const [issue] = res.error.issues;

lib/modules/versioning/ubuntu/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function isStable(version: string): boolean {
6666

6767
function getVersionByCodename(version: string): string {
6868
const datedImgVersion = getDatedContainerImageCodename(version);
69-
const getVersion = datedImgVersion ? datedImgVersion : version;
69+
const getVersion = datedImgVersion ?? version;
7070
return di.getVersionByCodename(getVersion);
7171
}
7272

0 commit comments

Comments
 (0)