Skip to content

Commit 87b324d

Browse files
authored
chore(util/exec): remove unnecessary optional operator (renovatebot#40956)
As we've checked that it's not `undefined`.
1 parent 6eaa786 commit 87b324d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/exec/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export function getToolSettingsOptions(
238238
options.jvmMemory = defaults?.jvmMemory ?? options.jvmMaxMemory;
239239

240240
if (repoConfig !== undefined) {
241-
if (repoConfig?.jvmMaxMemory) {
241+
if (repoConfig.jvmMaxMemory) {
242242
if (repoConfig.jvmMaxMemory > options.jvmMaxMemory) {
243243
logger.once.debug(
244244
`A higher jvmMaxMemory (${repoConfig.jvmMaxMemory}) than the global configuration (${options.jvmMaxMemory}) is not permitted for Java VM invocations. Using global configuration instead`,

0 commit comments

Comments
 (0)