Commit ef23533 1 parent 4af6e59 commit ef23533 Copy full SHA for ef23533
File tree 4 files changed +5
-6
lines changed
4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
import upath from 'upath' ;
2
2
import { logger } from '../../../logger' ;
3
+ import { coerceArray } from '../../../util/array' ;
3
4
import { readLocalFile } from '../../../util/fs' ;
4
5
import { ensureLocalPath } from '../../../util/fs/util' ;
5
6
import { extractPackageFile as extractRequirementsFile } from '../pip_requirements/extract' ;
@@ -73,7 +74,7 @@ export async function extractAllPackageFiles(
73
74
continue ;
74
75
}
75
76
lockFileArgs . set ( fileMatch , compileArgs ) ;
76
- for ( const constraint in compileArgs . constraintsFiles ) {
77
+ for ( const constraint of coerceArray ( compileArgs . constraintsFiles ) ) {
77
78
depsBetweenFiles . push ( {
78
79
sourceFile : constraint ,
79
80
outputFile : fileMatch ,
Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ export async function createFork(
423
423
await githubApi . postJson < GhRestRepo > ( `repos/${ repository } /forks` , {
424
424
token,
425
425
body : {
426
- organization : forkOrg ? forkOrg : undefined ,
426
+ organization : forkOrg ?? undefined ,
427
427
name : config . parentRepo ! . replace ( '/' , '-_-' ) ,
428
428
default_branch_only : true , // no baseBranches support yet
429
429
} ,
Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ export const getVersionings = (): Map<
17
17
> => versionings ;
18
18
19
19
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 ) ;
23
21
24
22
if ( ! res . success ) {
25
23
const [ issue ] = res . error . issues ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ function isStable(version: string): boolean {
66
66
67
67
function getVersionByCodename ( version : string ) : string {
68
68
const datedImgVersion = getDatedContainerImageCodename ( version ) ;
69
- const getVersion = datedImgVersion ? datedImgVersion : version ;
69
+ const getVersion = datedImgVersion ?? version ;
70
70
return di . getVersionByCodename ( getVersion ) ;
71
71
}
72
72
You can’t perform that action at this time.
0 commit comments