diff --git a/.eslintrc.js b/.eslintrc.js index 20ea989c578240..0366f5cf5175df 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -114,10 +114,7 @@ module.exports = { }, ], '@typescript-eslint/prefer-optional-chain': 2, - '@typescript-eslint/prefer-nullish-coalescing': [ - 2, - { ignoreMixedLogicalExpressions: true }, - ], + '@typescript-eslint/prefer-nullish-coalescing': 2, curly: [2, 'all'], 'require-await': 2, // next 2 rules disabled due to https://github.com/microsoft/TypeScript/issues/20024 diff --git a/lib/modules/manager/gomod/artifacts.ts b/lib/modules/manager/gomod/artifacts.ts index 52aec9011620e2..440fab627d5d54 100644 --- a/lib/modules/manager/gomod/artifacts.ts +++ b/lib/modules/manager/gomod/artifacts.ts @@ -134,7 +134,7 @@ export async function updateArtifacts({ const vendorDir = upath.join(goModDir, 'vendor/'); const vendorModulesFileName = upath.join(vendorDir, 'modules.txt'); const useVendor = - config.postUpdateOptions?.includes('gomodVendor') || + !!config.postUpdateOptions?.includes('gomodVendor') || ((await readLocalFile(vendorModulesFileName)) !== null && !config.postUpdateOptions?.includes('gomodSkipVendor')); let massagedGoMod = newGoModContent;